mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
file_which, add perl module (#9381)
This commit is contained in:
51
dev-perl/file_which/file_which-1.27.recipe
Normal file
51
dev-perl/file_which/file_which-1.27.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Perl implementation of the which utility as an API"
|
||||
DESCRIPTION="File::Which finds the full or relative paths to executable programs on the system. \
|
||||
This is normally the function of which utility. which is typically implemented as either a \
|
||||
program or a built in shell command. On some platforms, such as Microsoft Windows it is not \
|
||||
provided as part of the core operating system. This module provides a consistent API to this \
|
||||
functionality regardless of the underlying platform.
|
||||
|
||||
The focus of this module is correctness and portability. As a consequence platforms where the \
|
||||
current directory is implicitly part of the search path such as Microsoft Windows will find \
|
||||
executables in the current directory, whereas on platforms such as UNIX where this is not the \
|
||||
case executables in the current directory will only be found if the current directory is \
|
||||
explicitly added to the path.
|
||||
|
||||
If you need a portable which on the command line in an environment that does not provide it, \
|
||||
install App::pwhich which provides a command line interface to this API."
|
||||
HOMEPAGE="https://metacpan.org/pod/File::Which"
|
||||
COPYRIGHT="2002 by Per Einar Ellefsen"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3201f1a60e3f16484082e6045c896842261fc345de9fb2e620fd2a2c7af3a93a"
|
||||
SOURCE_DIR="File-Which-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
file_which = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
vendor_perl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:perl
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
perl Makefile.PL PREFIX=$prefix
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install DESTDIR="${DESTDIR}"
|
||||
}
|
||||
Reference in New Issue
Block a user