Files
haikuports/dev-lang/perl/perl-5.10.1.recipe
Oliver Tappe 2fb46053f1 * one more round of requirements shuffling, the base packages seem to
be declared properly, now
* improve formatting of recipe files for better readability and better
  compatibility with showing diffs (when moving specification lines)
* add/improve DESCRIPTION where it was just a copy of SUMMARY
2013-04-13 14:55:49 +00:00

80 lines
2.6 KiB
Plaintext

SUMMARY="Larry Wall's Practical Extraction and Report Language"
DESCRIPTION="
Perl was originally developed by Larry Wall in 1987 as a general-purpose
Unix scripting language to make report processing easier.
Perl borrows features from other programming languages including C, shell
scripting (sh), AWK, and sed. The language provides powerful text
processing facilities without the arbitrary data-length limits of many
contemporary Unix tools, facilitating easy manipulation of text files.
In addition to CGI, Perl is used for graphics programming, system
administration, network programming, finance, bioinformatics, and other
applications. Perl is nicknamed 'the Swiss Army chainsaw of scripting
languages' because of its flexibility and power, and possibly also
because of its perceived 'ugliness'.
"
HOMEPAGE="http://www.perl.org/"
SRC_URI="http://www.cpan.org/src/perl-5.10.1.tar.gz"
CHECKSUM_MD5="b9b2fdb957f50ada62d73f43ee75d044"
REVISION="3"
ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
perl = $portVersion compat >= 5
cmd:perl = $portVersion compat >= 5
lib:libperl = $portVersion compat >= 5
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
cmd:sed
"
BUILD_PREREQUIRES="
haiku-devel >= $haikuVersion
cmd:gcc
cmd:ld
cmd:make
"
SOURCE_DIR="$portVersionedName"
BUILD_PACKAGE_ACTIVATION_PHASE="INSTALL"
BUILD()
{
./Configure \
-Dprefix=$prefix \
-Dprivlib=$prefix/lib/perl5/core_perl/$portVersion \
-Dsiteprefix=$prefix/non-packaged \
-Dsitelib=$prefix/non-packaged/lib/perl5/site_perl/$portVersion \
-Dvendorprefix=$prefix \
-Dvendorlib=$prefix/lib/perl5/vendor_perl/$portVersion \
-Dcf_email=zooey@hirschkaefer.de \
-Uusenm -Duseshrplib -Uusemymalloc \
-Dlibpth="$(finddir B_USER_LIB_DIRECTORY) $(finddir B_COMMON_LIB_DIRECTORY) $(finddir B_SYSTEM_LIB_DIRECTORY)" \
-Dusrinc="$(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers/posix" \
-Dlocinc="$(finddir B_USER_CONFIG_DIRECTORY)/develop/headers $(finddir B_COMMON_DEVELOP_DIRECTORY)/headers $(finddir B_SYSTEM_DEVELOP_DIRECTORY)/headers" \
-Dlibc="$(finddir B_SYSTEM_LIB_DIRECTORY)/libroot.so" \
-Dlibs=-lnetwork -Dcc=gcc -Dld=gcc \
-Ud_link -Ddont_use_nlink -Ud_syserrlst \
-Dldlibpthname=LIBRARY_PATH -Dstartperl="#! perl" -de
# force-remove path from sed
sed -i -e 's/LOC_SED\s*"\/boot\/common\/bin\/sed/LOC_SED "sed/' config.h
make
}
INSTALL()
{
perlArch=BePC-haiku
make install
cd "$binDir"
chmod a+x perl psed pstruct perlthanks
cd "$libDir"
ln -sf perl5/core_perl/5.10.1/$perlArch/CORE/libperl.so .
}
LICENSE="GNU GPL v1
Artistic (Perl)"
COPYRIGHT="1993-2009 Larry Wall and others"