aboutsummaryrefslogtreecommitdiffstats
path: root/converters/bibtexconv/Makefile
blob: 3c832e80bf2f157c5790d4f41a670d9fea088853 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Thomas Dreibholz <dreibh@iem.uni-due.de>
# $FreeBSD$

PORTNAME=   bibtexconv
PORTVERSION=    1.1.11
CATEGORIES= converters
MASTER_SITES=   https://www.uni-due.de/~be0001/bibtexconv/download/

MAINTAINER= dreibh@iem.uni-due.de
COMMENT=    BibTeX Converter

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING.GPL

LIB_DEPENDS=    libcurl.so:ftp/curl

GNU_CONFIGURE=  yes
USES=       gmake ssl python:3.4+

PLIST_FILES=    bin/bibtexconv bin/bibtexconv-odt bin/ietf2bibtex \
        man/man1/bibtexconv.1.gz man/man1/bibtexconv-odt.1.gz \
        man/man1/ietf2bibtex.1.gz

PORTEXAMPLES=   ExampleReferences.bib ODT-Template.odt odt-example.export \
        web-example.export text-example.export

OPTIONS_DEFINE= EXAMPLES

pre-configure:
    @${REINPLACE_CMD} -e 's|install-data-am: install-dist_examplesDATA|install-data-am:|' \
    ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e 's|/usr/bin/python3|${PYTHON_CMD}|' ${WRKSRC}/src/ietf2bibtex

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/src/,} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>