mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
e21db128a6
- Add LICENSE - Fix comment MFH: 2015Q1
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bib2html
|
|
DISTVERSION= 5.1-1
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc print
|
|
MASTER_SITES= http://www.arakhne.org/IMG/gz/ \
|
|
http://fresh.t-systems-sfr.com/fresh/unix/src/privat2/
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= BibTeX to HTML Translator
|
|
|
|
LICENSE= GPLv2 # or later
|
|
LICENSE_FILE= ${WRKSRC}/../COPYING
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-[0-9]$//}/src
|
|
|
|
USES= perl5 shebangfix
|
|
SHEBANG_FILES= bib2html.pl bib2xml.pl
|
|
USE_PERL5= run
|
|
NO_BUILD= yes
|
|
|
|
post-patch:
|
|
@${SED} -e \
|
|
's:= "$$0";:= "${SITE_PERL}/Bib2HTML";:g' \
|
|
< ${WRKSRC}/bib2html.pl > ${WRKSRC}/bib2html
|
|
@${SED} -e \
|
|
's:= "$$0";:= "${SITE_PERL}/Bib2HTML";:g' \
|
|
< ${WRKSRC}/bib2xml.pl > ${WRKSRC}/bib2xml
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Bib2HTML
|
|
cd ${WRKSRC}/Bib2HTML && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Bib2HTML
|
|
${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type f | \
|
|
${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|