diff --git a/textproc/refdb/Makefile b/textproc/refdb/Makefile index 8cbef78a7b59..00ca3e1afcbd 100644 --- a/textproc/refdb/Makefile +++ b/textproc/refdb/Makefile @@ -1,133 +1,134 @@ PORTNAME= refdb PORTVERSION= 0.9.9 DISTVERSIONSUFFIX= -1 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-src-${PORTVERSION}-1 MAINTAINER= ports@FreeBSD.org COMMENT= Bibliographic reference database WWW= https://refdb.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:textproc/expat2 \ libbtparse.so:textproc/btparse \ libdbi.so:databases/libdbi \ libltdl.so:devel/libltdl USES= gmake iconv readline perl5 libtool pkgconfig pathfix shebangfix HAS_CONFIGURE= yes INSTALL_TARGET= install-strip PORTDOCS= * CFLAGS+= -I${LOCALBASE}/include LIBS+= -lm CONFIGURE_ARGS= --with-expat-lib=${LOCALBASE}/lib \ --with-classpath-root=${PREFIX}/share/java/classes \ - --with-refdb-url=http://localhost/refdb + --with-refdb-url=http://localhost/refdb \ + --mandir=${PREFIX}/share/man XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr OPTIONS_DEFINE= DOCS CATALOG OPTIONS_SINGLE= DB OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE OPTIONS_EXCLUDE= CATALOG # may not be implemented correctly CATALOG_DESC= Install SGML catalog OPTIONS_DEFAULT= PGSQL DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \ docbook-xsl>=0:textproc/docbook-xsl SHEBANG_FILES= ${WRKSRC}/scripts/* USE_RC_SUBR= refdbd .include .if ${PORT_OPTIONS:MMYSQL} USES+= mysql # If libdbi-drivers has been built without MySQL driver, abort .if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdmysql.so) IGNORE= rebuild databases/libdbi-drivers with MySQL support .elif !exists(${LOCALBASE}/lib/dbd) BUILD_DEPENDS+= ${LOCALBASE}/lib/dbd:databases/libdbi-drivers .endif CONFIGURE_ARGS+= --with-db-server=mysql .elif ${PORT_OPTIONS:MPGSQL} USES+= pgsql # If libdbi-drivers has been built without PostgreSQL driver, abort .if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdpgsql.so) IGNORE= rebuild databases/libdbi-drivers with PostgreSQL support .elif !exists(${LOCALBASE}/lib/dbd) BUILD_DEPENDS+= ${LOCALBASE}/lib/dbd:databases/libdbi-drivers .endif CONFIGURE_ARGS+= --with-db-server=pgsql .elif ${PORT_OPTIONS:MSQLITE} LIB_DEPENDS+= libsqlite3.so:databases/sqlite3 # If libdbi-drivers has been built without SQLite driver, abort .if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdsqlite3.so) IGNORE= rebuild databases/libdbi-drivers with SQLite support .elif !exists(${LOCALBASE}/lib/dbd) BUILD_DEPENDS+= ${LOCALBASE}/lib/dbd:databases/libdbi-drivers .endif CONFIGURE_ARGS+= --with-db-server=sqlite .endif .if ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+= --with-docbook-xsl=${PREFIX}/share/xsl/docbook \ --without-docbook-xsl-ns \ --without-tei-xsl \ --without-tei-xsl-ns .else CONFIGURE_ARGS+= --disable-docs .endif .if ${PORT_OPTIONS:MCATALOG} RUN_DEPENDS+= xmlcatmgr:textproc/xmlcatmgr .endif post-patch: ${REINPLACE_CMD} -e 's|$$(PACKAGE)-$$(VERSION)|refdb|g' \ ${WRKSRC}/doc/Makefile.in post-install: .if ${PORT_OPTIONS:MCATALOG} @[ -f ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports ] || ${TOUCH} ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports @${XMLCATMGR} -s -c ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports lookup "${STAGEDIR}${PREFIX}/share/refdb/refdb.cat" > /dev/null || ${XMLCATMGR} -s -c ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports add CATALOG "${STAGEDIR}${PREFIX}/share/refdb/refdb.cat" -- > /dev/null .endif @${ECHO_MSG} "To complete RefDB installation:" .if ${PORT_OPTIONS:MMYSQL} @${ECHO_MSG} "" @${ECHO_MSG} "1. To initialise MySQL, run the following command:" @${ECHO_MSG} "" @${ECHO_MSG} " mysql -u root -e \"CREATE DATABASE refdb\"" @${ECHO_MSG} "" @${ECHO_MSG} " Then, for MySQL older than 4.1, run:" @${ECHO_MSG} "" @${ECHO_MSG} " mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql" @${ECHO_MSG} "" @${ECHO_MSG} " For MySQL 4.1 and later, run:" @${ECHO_MSG} "" @${ECHO_MSG} " mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql41" @${ECHO_MSG} "" .elif ${PORT_OPTIONS:MPGSQL} @${ECHO_MSG} "" @${ECHO_MSG} "1. To initialise PostgreSQL, run the following commands:" @${ECHO_MSG} "" @${ECHO_MSG} " createdb -U pgsql -E UNICODE refdb" @${ECHO_MSG} " psql -U pgsql refdb < ${PREFIX}/share/refdb/sql/refdb.dump.pgsql" @${ECHO_MSG} "" .elif ${PORT_OPTIONS:MSQLITE} @${ECHO_MSG} "" @${ECHO_MSG} "1. To initialise SQLite, run the following commands:" @${ECHO_MSG} "" @${ECHO_MSG} " cd ${PREFIX}/share/refdb/db" @${ECHO_MSG} " sqlite refdb < ${PREFIX}/share/refdb/sql/refdb.dump.sqlite" @${ECHO_MSG} "" .endif .include diff --git a/textproc/refdb/pkg-plist b/textproc/refdb/pkg-plist index 6f21f5818f0d..021d971faddc 100644 --- a/textproc/refdb/pkg-plist +++ b/textproc/refdb/pkg-plist @@ -1,180 +1,180 @@ bin/bib2ris bin/bib2ris-utf8 bin/db2ris bin/eenc bin/en2ris bin/marc2ris bin/med2ris bin/refdb-backup bin/refdb-init bin/refdb-ms bin/refdb-restore bin/refdb-sruserver bin/refdb_dos2unix bin/refdb_latex2utf8txt bin/refdba bin/refdbc bin/refdbctl bin/refdbd bin/refdbib bin/refdbjade bin/refdbnd bin/refdbsru bin/refdbxml bin/refdbxp bin/runbib %%ETCDIR%%/bib2riscgirc.example %%ETCDIR%%/bib2risrc.example %%ETCDIR%%/db2risrc.example %%ETCDIR%%/marc2risrc.example %%ETCDIR%%/med2riscgirc.example %%ETCDIR%%/med2risrc.example %%ETCDIR%%/refdbarc.example %%ETCDIR%%/refdbcgirc.example %%ETCDIR%%/refdbcrc.example %%ETCDIR%%/refdbdrc.mysql.example %%ETCDIR%%/refdbdrc.pgsql.example %%ETCDIR%%/refdbdrc.sqlite.example %%ETCDIR%%/refdbdrc.sqlite3.example %%ETCDIR%%/refdbibrc.example %%ETCDIR%%/refdbjaderc.example %%ETCDIR%%/refdbsrurc.example %%ETCDIR%%/refdbxmlrc.example %%ETCDIR%%/runbibrc.example -man/man1/bib2ris-utf8.1.gz -man/man1/bib2ris.1.gz -man/man1/db2ris.1.gz -man/man1/eenc.1.gz -man/man1/en2ris.1.gz -man/man1/marc2ris.1.gz -man/man1/med2ris.1.gz -man/man1/refdb-backup.1.gz -man/man1/refdb-bug.1.gz -man/man1/refdb-ms.1.gz -man/man1/refdb-restore.1.gz -man/man1/refdb-sruserver.1.gz -man/man1/refdb_dos2unix.1.gz -man/man1/refdb_latex2utf8txt.1.gz -man/man1/refdba.1.gz -man/man1/refdbc.1.gz -man/man1/refdbctl.1.gz -man/man1/refdbd.1.gz -man/man1/refdbib.1.gz -man/man1/refdbjade.1.gz -man/man1/refdbnd.1.gz -man/man1/refdbsru.1.gz -man/man1/refdbxml.1.gz -man/man1/refdbxp.1.gz -man/man1/runbib.1.gz -man/man8/refdb-init.8.gz -man/man8/refdb.8.gz -man/man8/refdb.sh.8.gz +share/man/man1/bib2ris-utf8.1.gz +share/man/man1/bib2ris.1.gz +share/man/man1/db2ris.1.gz +share/man/man1/eenc.1.gz +share/man/man1/en2ris.1.gz +share/man/man1/marc2ris.1.gz +share/man/man1/med2ris.1.gz +share/man/man1/refdb-backup.1.gz +share/man/man1/refdb-bug.1.gz +share/man/man1/refdb-ms.1.gz +share/man/man1/refdb-restore.1.gz +share/man/man1/refdb-sruserver.1.gz +share/man/man1/refdb_dos2unix.1.gz +share/man/man1/refdb_latex2utf8txt.1.gz +share/man/man1/refdba.1.gz +share/man/man1/refdbc.1.gz +share/man/man1/refdbctl.1.gz +share/man/man1/refdbd.1.gz +share/man/man1/refdbib.1.gz +share/man/man1/refdbjade.1.gz +share/man/man1/refdbnd.1.gz +share/man/man1/refdbsru.1.gz +share/man/man1/refdbxml.1.gz +share/man/man1/refdbxp.1.gz +share/man/man1/runbib.1.gz +share/man/man8/refdb-init.8.gz +share/man/man8/refdb.8.gz +share/man/man8/refdb.sh.8.gz %%DATADIR%%/declarations/docbook.dcl %%DATADIR%%/declarations/xml.dcl %%DATADIR%%/dsssl/bibdb2tei.dsl %%DATADIR%%/dsssl/catalog %%DATADIR%%/dsssl/citations.dsl %%DATADIR%%/dsssl/db2ris.dsl %%DATADIR%%/dsssl/html/docbook-refdb.dsl %%DATADIR%%/dsssl/lib/refdblib.dsl %%DATADIR%%/dsssl/lib/refdbvar.dsl %%DATADIR%%/dsssl/makecss.dsl %%DATADIR%%/dsssl/print/docbook-refdb.dsl %%DATADIR%%/dtd/catalog %%DATADIR%%/dtd/citationlistx.dtd %%DATADIR%%/dtd/citationlistx.rnc %%DATADIR%%/dtd/citationlistx.rng %%DATADIR%%/dtd/citestylex.dtd %%DATADIR%%/dtd/citestylex.rnc %%DATADIR%%/dtd/citestylex.rng %%DATADIR%%/dtd/risx.dtd %%DATADIR%%/dtd/risx.rnc %%DATADIR%%/dtd/risx.rng %%DATADIR%%/dtd/xnote.dtd %%DATADIR%%/dtd/xnote.rnc %%DATADIR%%/dtd/xnote.rng %%DATADIR%%/examples/Makefile.template %%DATADIR%%/examples/dbtest.sgml %%DATADIR%%/examples/dbtest.short.sgml %%DATADIR%%/examples/dbxtest.short.xml %%DATADIR%%/examples/dbxtest.xml %%DATADIR%%/examples/pubmed.txt %%DATADIR%%/examples/pubmed.xml %%DATADIR%%/examples/readme.examples %%DATADIR%%/examples/serif.bib %%DATADIR%%/examples/teitest.short.xml %%DATADIR%%/examples/teitest.xml %%DATADIR%%/examples/testrefs.usmarc %%DATADIR%%/examples/testrefs.utf8.ris %%DATADIR%%/examples/testrefs.xml %%DATADIR%%/examples/xnoteset.xml %%DATADIR%%/refdb.cat %%DATADIR%%/sql/empty.2.dump.mysql41 %%DATADIR%%/sql/empty.2.dump.pgsql %%DATADIR%%/sql/empty.2.dump.sqlite3 %%DATADIR%%/sql/refdb.2.dump.mysql41 %%DATADIR%%/sql/refdb.2.dump.pgsql %%DATADIR%%/sql/refdb.2.dump.sqlite %%DATADIR%%/sql/refdb.3.dump.mysql41 %%DATADIR%%/sql/refdb.3.dump.pgsql %%DATADIR%%/sql/refdb.3.dump.sqlite %%DATADIR%%/sru/mods.xsl %%DATADIR%%/sru/refdbsru.css %%DATADIR%%/sru/refdbsru.xsl %%DATADIR%%/sru/risx.xsl %%DATADIR%%/styles/APA.xml %%DATADIR%%/styles/Biomaterials.xml %%DATADIR%%/styles/Eur.J.Pharmacol.xml %%DATADIR%%/styles/J.Biol.Chem.xml %%DATADIR%%/styles/Murdoch.Law.xml %%DATADIR%%/styles/Tissue_Eng.xml %%DATADIR%%/styles/bibtex-abbrev.xml %%DATADIR%%/styles/bibtex-full.xml %%DATADIR%%/styles/citekey.xml %%DATADIR%%/styles/schemas.xml %%DATADIR%%/www/css/main.css %%DATADIR%%/www/css/navigationlist.css %%DATADIR%%/www/css/refdb-frequency.css %%DATADIR%%/www/css/refdb.css %%DATADIR%%/www/images/bg.gif %%DATADIR%%/www/images/left.gif %%DATADIR%%/www/images/left_on.gif %%DATADIR%%/www/images/norm_left.gif %%DATADIR%%/www/images/norm_left_on.gif %%DATADIR%%/www/images/norm_right.gif %%DATADIR%%/www/images/norm_right_on.gif %%DATADIR%%/www/images/refdb.png %%DATADIR%%/www/images/right.gif %%DATADIR%%/www/images/right_on.gif %%DATADIR%%/www/includes/functions.inc.php %%DATADIR%%/www/includes/refdblib.inc.php %%DATADIR%%/www/index.php %%DATADIR%%/www/xsl/MARC21slim2English.xsl %%DATADIR%%/www/xsl/MARC21slim2RISX.xsl %%DATADIR%%/www/xsl/refdb-entry-parts.xsl %%DATADIR%%/www/xsl/refdb-entry-structure-buttons.xsl %%DATADIR%%/www/xsl/refdb-entry-structure.xsl %%DATADIR%%/xsl/bibdb2tei.xsl %%DATADIR%%/xsl/citations.xsl %%DATADIR%%/xsl/citationsraw.xsl %%DATADIR%%/xsl/common-refdb/refdbvar.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-fo/docbk-refdb-fo-ns.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-fo/docbk-refdb-fo.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-html/docbk-refdb-html-ns.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-html/docbk-refdb-html.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib-ns.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-lib/docbk-refdblib.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-xhtml/docbk-refdb-xhtml-ns.xsl %%DATADIR%%/xsl/docbk-refdb-xsl/docbk-xhtml/docbk-refdb-xhtml.xsl %%DATADIR%%/xsl/makecss-ns.xsl %%DATADIR%%/xsl/makecss.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-fo/tei-refdb-fo-ns.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-fo/tei-refdb-fo.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-html/tei-refdb-html-ns.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-html/tei-refdb-html.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-lib/tei-refdblib-ns.xsl %%DATADIR%%/xsl/tei-refdb-xsl/tei-lib/tei-refdblib.xsl @dir %%DATADIR%%/db @dir var/lib/refdb/db @dir var/log @dir var/run