# Description: Permits access from Perl to the gettext() family of functions
# URL: URL: http://search.cpan.org/dist/gettext/
# NuTyX package info file (http://nutyx.org)
# Packager: # NuTyX package info file (http://nutyx.org)
# Depends on: gettext 
run=( perl )
name=perl-locale-gettext
version=1.05
release=1

source=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$version.tar.gz
perl-locale-gettext.compatibility-with-POSIX-module.patch)

build() {
    cd gettext-$version
    patch -Np1 -i \
        ../perl-locale-gettext.compatibility-with-POSIX-module.patch || exit 1
    perl Makefile.PL
    make OPTIMIZE="$CFLAGS" || exit 1
    make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1

    # Remove perllocal.pod and .packlist if present in the package
    for i in perllocal.pod .packlist; do
        find $PKG -name "$i" -exec rm -rf {} \;
    done
}



# NuTyX Pkgfile (http://nutyx.org)
