Files
haikuports/dev-perl/text_bibtex/text_bibtex-0.89.recipe
2025-01-06 15:41:47 +01:00

87 lines
2.5 KiB
Bash

SUMMARY="Interface to read and parse BibTeX files"
DESCRIPTION="Text::BibTeX is a Perl library for reading, parsing, and processing BibTeX files. \
It is the Perl half of btOOL, a pair of libraries for dealing with BibTeX data.
Text::BibTeX gives you access to the data at many different levels: you may work with BibTeX \
entries as simple \"field -> string\" mappings, or get at the original form of the data as a list \
of simple values (strings, macros, or numbers) pasted together. You can choose not to impose any \
restrictions on the allowed/expected entry types or fields, or you can use the structure defined \
by BibTeX 0.99's standard style files, or you can invent your own.
The library is copiously documented. After installing the module, see the Text::BibTeX man page \
for a comprehensive introduction to the system. If you wish to dive straight in without regards \
for niceties such as splitting and formatting names, defining or imposing database structures, \
getting access to unprocessed field values, and other nifty features, then you can probably get \
away with just reading the Text::BibTeX::Entry man page. Comments/criticism of the documentation \
are welcome."
HOMEPAGE="https://metacpan.org/pod/Text::BibTeX"
COPYRIGHT="1997-2000 by Gregory P. Ward
2005-2023 Alberto Simões"
LICENSE="Artistic
GNU GPL v2"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AM/AMBS/Text-BibTeX-$portVersion.tar.gz"
CHECKSUM_SHA256="88a78ebf088ec7502f401c5a2b138c862cf5458534b773223bbf3aaf41224196"
SOURCE_DIR="Text-BibTeX-$portVersion"
PATCHES="text_bibtex-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
text_bibtex$secondaryArchSuffix = $portVersion
cmd:biblex
cmd:bibparse
cmd:dumpnames
lib:libbtparse$secondaryArchSuffix
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
text_bibtex = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
vendor_perl
"
PROVIDES_devel="
text_bibtex${secondaryArchSuffix}_devel = $portVersion
devel:libbtparse$secondaryArchSuffix
"
REQUIRES_devel="
text_bibtex$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
config_autoconf
extutils_libbuilder
module_build
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:perl
"
BUILD()
{
perl Build.PL --installdirs vendor --prefix $prefix
./Build
}
INSTALL()
{
./Build pure_install
prepareInstalledDevelLib libbtparse
packageEntries devel \
$developDir
}
TEST()
{
./Build test
}