mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
SUMMARY="A more sensible way to change directories"
|
|
DESCRIPTION="Perl's chdir() has the unfortunate problem of being very, very, very global. If any \
|
|
part of your program calls chdir() or if any library you use calls chdir(), it changes the \
|
|
current working directory for the *whole* program.
|
|
This sucks.
|
|
File::chdir gives you an alternative, $CWD and @CWD. These two variables combine all the power of \
|
|
chdir(), File::Spec and Cwd."
|
|
HOMEPAGE="https://metacpan.org/pod/File::chdir"
|
|
COPYRIGHT="2016 by Michael G. Schwern and David Golden"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/File-chdir-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="31ebf912df48d5d681def74b9880d78b1f3aca4351a0ed1fe3570b8e03af6c79"
|
|
SOURCE_DIR="File-chdir-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
file_chdir = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
perl Makefile.PL PREFIX=$prefix
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make pure_install
|
|
|
|
# remove architecture-specific files
|
|
cd $prefix
|
|
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
|
|
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|