mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
86 lines
2.4 KiB
Bash
86 lines
2.4 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="3f0113cf8fe71dc7484636dc8e2a581637ecbcc82d0be29bbd46d0bf3f8cdb37"
|
|
SOURCE_DIR="Text-BibTeX-$portVersion"
|
|
|
|
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 --prefix $prefix
|
|
./Build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
./Build pure_install
|
|
|
|
prepareInstalledDevelLib libbtparse
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
./Build test
|
|
}
|