summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-09-21 15:01:23 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-09-21 15:01:23 +0000
commit0a37dcf8fa5424eceae423734703aa04fd6aca7a (patch)
tree2c763a9f0f073b89d6c556e16d54d7b4fecd3b24
parentports-mgmt/pkg: Update to 1.15.5 (diff)
Add textproc/bibclean
Bibclean is a prettyprinter, portability verifier, and syntax checker for BibTeX bibliography databases. It can be used to find errors in .bib files, as well as to standardize their format for readability and editing convenience. It can also be used to convert Scribe-format bibliographies to BibTeX form. WWW: http://ftp.math.utah.edu/pub//bibclean/
Notes
Notes: svn path=/head/; revision=549448
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/bibclean/Makefile18
-rw-r--r--textproc/bibclean/distinfo3
-rw-r--r--textproc/bibclean/files/patch-Makefile.in29
-rw-r--r--textproc/bibclean/pkg-descr6
-rw-r--r--textproc/bibclean/pkg-plist7
6 files changed, 64 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 4e84f88b0bf8..9f315108abda 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -68,6 +68,7 @@
SUBDIR += bg-hyphen
SUBDIR += bg-mythes
SUBDIR += bib2html
+ SUBDIR += bibclean
SUBDIR += bibtex2html
SUBDIR += bibtool
SUBDIR += bibutils
diff --git a/textproc/bibclean/Makefile b/textproc/bibclean/Makefile
new file mode 100644
index 000000000000..906bffe411e6
--- /dev/null
+++ b/textproc/bibclean/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= bibclean
+DISTVERSION= 3.04
+CATEGORIES= textproc
+MASTER_SITES= http://ftp.math.utah.edu/pub//bibclean/
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= Prettyprinter, portability verifier, and syntax checker for BibTeX
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+GNU_CONFIGURE= yes
+
+PLIST_SUB= VERSION=${DISTVERSION}
+
+.include <bsd.port.mk>
diff --git a/textproc/bibclean/distinfo b/textproc/bibclean/distinfo
new file mode 100644
index 000000000000..8bf45639c60d
--- /dev/null
+++ b/textproc/bibclean/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1600697423
+SHA256 (bibclean-3.04.tar.gz) = a0ad3655ed7c899e987de99e2ce058fa4407d472e093a19c499d757d5e5af7b0
+SIZE (bibclean-3.04.tar.gz) = 2712015
diff --git a/textproc/bibclean/files/patch-Makefile.in b/textproc/bibclean/files/patch-Makefile.in
new file mode 100644
index 000000000000..08497c4df9b9
--- /dev/null
+++ b/textproc/bibclean/files/patch-Makefile.in
@@ -0,0 +1,29 @@
+--- Makefile.in.orig 2020-09-21 14:24:41 UTC
++++ Makefile.in
+@@ -94,10 +94,10 @@ BIBCLEANNAME = bibclean
+ prefix = @prefix@
+ exec_prefix = ${prefix}
+
+-bindir = ${exec_prefix}/bin
+-srcdir = @srcdir@
++bindir = ${DESTDIR}/${exec_prefix}/bin
++srcdir = ${DESTDIR}/@srcdir@
+
+-datarootdir = @datarootdir@
++datarootdir = ${DESTDIR}/@datarootdir@
+ datadir = @datadir@
+ bibcleandir = ${datadir}/${BIBCLEANNAME}
+ initdir = ${bibcleandir}/${VERSION}
+@@ -117,10 +117,10 @@ LIBS = @LIBS@
+
+ OPT =
+
+-VPATH = @srcdir@
++VPATH = ${DESTDIR}/@srcdir@
+
+ ### Where to install the manual pages.
+-mandir = ${prefix}/man/man1
++mandir = ${DESTDIR}${prefix}/share/man/man1
+ ### Extension (not including `.') for the installed manual page filenames.
+ manext = 1
+
diff --git a/textproc/bibclean/pkg-descr b/textproc/bibclean/pkg-descr
new file mode 100644
index 000000000000..1e8c1a1756e1
--- /dev/null
+++ b/textproc/bibclean/pkg-descr
@@ -0,0 +1,6 @@
+Bibclean is a prettyprinter, portability verifier, and syntax checker for
+BibTeX bibliography databases. It can be used to find errors in .bib files, as
+well as to standardize their format for readability and editing convenience. It
+can also be used to convert Scribe-format bibliographies to BibTeX form.
+
+WWW: http://ftp.math.utah.edu/pub//bibclean/
diff --git a/textproc/bibclean/pkg-plist b/textproc/bibclean/pkg-plist
new file mode 100644
index 000000000000..09e0a4b9633c
--- /dev/null
+++ b/textproc/bibclean/pkg-plist
@@ -0,0 +1,7 @@
+bin/bibclean
+bin/bibclean-%%VERSION%%
+share/man/man1/bibclean.1.gz
+share/man/man1/bibclean-%%VERSION%%.1.gz
+%%DATADIR%%/%%VERSION%%/bibclean.ini
+%%DATADIR%%/%%VERSION%%/bibclean.isbn
+%%DATADIR%%/%%VERSION%%/bibclean.key