import ports/textproc/bibtool, from Marco van Hulten, ok jtt, small

tweaks from me on top

BibTool allows the manipulation of BibTeX files which goes beyond
the possibilities -- and intentions -- of BibTeX.
This commit is contained in:
sthen
2025-12-06 15:48:43 +00:00
parent 7e8fe236b8
commit 34b4c01bb8
4 changed files with 72 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
COMMENT = tool for manipulating BibTeX databases
VERSION = 2.68
DISTNAME = BibTool-${VERSION}
PKGNAME = bibtool-${VERSION}
CATEGORIES = textproc
# https://github.com/ge-ne/bibtool
HOMEPAGE = https://www.gerd-neugebauer.de/software/TeX/BibTool/en/
MAINTAINER = Marco van Hulten <marco@hulten.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += c
SITES = https://www.gerd-neugebauer.de/software/TeX/BibTool/
# At https://mirrors.ctan.org/biblio/bibtex/utils/bibtool/ lives a tarball with
# a different checksum, but their contents are identical.
FAKE_FLAGS = INSTALLPREFIX=${WRKINST}
TEST_FLAGS = TEXMFCNF=${PREFIX}/share/texmf-dist/web2c
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-kpathsea
MAKE_FILE = makefile
WRKDIST = ${WRKDIR}/BibTool
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bibtool.1 ${PREFIX}/man/man1
.include <bsd.port.mk>
+2
View File
@@ -0,0 +1,2 @@
SHA256 (BibTool-2.68.tar.gz) = cTTOOgX+lMBLiPGCYROWVqxMDAiT3hWswNqryQJIuPo=
SIZE (BibTool-2.68.tar.gz) = 745469
+19
View File
@@ -0,0 +1,19 @@
BibTool allows the manipulation of BibTeX files which goes beyond
the possibilities -- and intentions -- of BibTeX. The possibilities
of BibTool include
- Pretty-printing of BibTeX databases adjustable by lots of parameters.
- Syntactic checks with error recovery superior to BibTeX and helpful
error messages.
- Semantic checks can be specified by the user.
- Sorting and merging of BibTeX databases according to a free definable
sort key.
- Generation of uniform reference keys according to predefined rules or
according to an own specification.
- Selecting references used in one publication which are found by
analyzing an .aux file.
- Selecting references by a set of criteria (regular expressions).
- Controlled rewriting of fields utilizing regular expressions to
specify the rewriting rules.
- Macro (String) expansion to eliminate the need of extra string
definitions. Collecting statistics about one or more BibTeX databases.
+16
View File
@@ -0,0 +1,16 @@
@bin bin/bibtool
lib/BibTool/
lib/BibTool/biblatex.rsc
lib/BibTool/braces.rsc
lib/BibTool/check_y.rsc
lib/BibTool/default.rsc
lib/BibTool/field.rsc
lib/BibTool/improve.rsc
lib/BibTool/iso2tex.rsc
lib/BibTool/keep_biblatex.rsc
lib/BibTool/keep_bibtex.rsc
lib/BibTool/month.rsc
lib/BibTool/opt.rsc
lib/BibTool/sort_fld.rsc
lib/BibTool/tex_def.rsc
@man man/man1/bibtool.1