mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Convert to staging
- pet portlint - add license - convert patches to makepatch naming Sponsored by: Absolight
This commit is contained in:
parent
18bc365f51
commit
005071a063
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341143
@ -3,9 +3,9 @@
|
||||
|
||||
PORTNAME= bar
|
||||
PORTVERSION= 1.4
|
||||
DISTVERSIONSUFFIX= -src
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://www.theiling.de/downloads/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= erik@bz.bzflag.bz
|
||||
COMMENT= Cat with ASCII progress bar
|
||||
@ -15,8 +15,7 @@ NO_BUILD= yes
|
||||
PLIST_FILES= bin/bar
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bar ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bar ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -9,24 +9,21 @@ MASTER_SITES= SF/${PORTNAME}-/${PORTNAME}/${PORTVERSION}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A sed-like editor for binary files
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
MAN1= ${PORTNAME}.1
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
||||
DOCS= AUTHORS ChangeLog README
|
||||
PORTDOCS= bbe.html ${DOCS}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/bbe.html ${DOCSDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/bbe.html ${STAGEDIR}${DOCSDIR}
|
||||
.for i in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -11,23 +11,19 @@ MAINTAINER= todorov@freebsd-bg.org
|
||||
COMMENT= Data (dictionary) files for the kbedic and cbedic ports
|
||||
|
||||
NO_BUILD= yes
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
|
||||
DICT_ALL= buleng.dat engbul.dat
|
||||
DICT_DIR?= ${PREFIX}/share
|
||||
DICTIONARIES?= ${DICT_ALL}
|
||||
PLIST_FILES= ${DICTIONARIES:S,^,share/,}
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-fetch:
|
||||
@${ECHO_MSG} "You may set the DICTIONARIES variable to specify which dictionaries"
|
||||
@${ECHO_MSG} "should be installed; currently, it is set to ${DICTIONARIES}"
|
||||
@${ECHO_MSG} "Set it to one or more of the following: ${DICT_ALL}"
|
||||
|
||||
pre-install:
|
||||
@${ECHO_CMD} ${DICTIONARIES} | ${TR} ' ' '\n' | ${SED} 's,^,share/,' > ${PLIST}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DICT_DIR}
|
||||
${INSTALL} ${DICTIONARIES:S,^,${WRKSRC}/,} ${DICT_DIR}/
|
||||
@${MKDIR} ${STAGEDIR}${DICT_DIR}
|
||||
${INSTALL} ${DICTIONARIES:S,^,${WRKSRC}/,} ${STAGEDIR}${DICT_DIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -17,29 +17,22 @@ USES= perl5
|
||||
USE_PERL5= run
|
||||
NO_BUILD= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${SED} -e \
|
||||
's:= "$$0";:= "${PREFIX}/${SITE_PERL_REL}/Bib2HTML";:g' \
|
||||
's:= "$$0";:= "${SITE_PERL}/Bib2HTML";:g' \
|
||||
< ${WRKSRC}/bib2html.pl > ${WRKSRC}/bib2html
|
||||
@${SED} -e \
|
||||
's:= "$$0";:= "${PREFIX}/${SITE_PERL_REL}/Bib2HTML";:g' \
|
||||
's:= "$$0";:= "${SITE_PERL}/Bib2HTML";:g' \
|
||||
< ${WRKSRC}/bib2xml.pl > ${WRKSRC}/bib2xml
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${PREFIX}/bin
|
||||
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML
|
||||
@cd ${WRKSRC}/Bib2HTML && ${FIND} . | \
|
||||
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} \
|
||||
${PREFIX}/${SITE_PERL_REL}/Bib2HTML
|
||||
${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type f | \
|
||||
${XARGS} ${CHMOD} ${LIBMODE}
|
||||
${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type d | \
|
||||
${XARGS} ${CHMOD} a+rx
|
||||
@${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type f | \
|
||||
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
||||
@${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type d | ${SORT} -r | \
|
||||
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${SITE_PERL}/Bib2HTML
|
||||
cd ${WRKSRC}/Bib2HTML && ${COPYTREE_SHARE} . ${STAGEDIR}${SITE_PERL}/Bib2HTML
|
||||
${FIND} ${STAGEDIR}${SITE_PERL}/Bib2HTML -type f | \
|
||||
${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
|
||||
${FIND} ${STAGEDIR}${SITE_PERL}/Bib2HTML -type d | ${SORT} -r | \
|
||||
${SED} "s,^${STAGEDIR}${PREFIX}/,@dirrm ," >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -20,23 +20,15 @@ CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
|
||||
MAKEFILE= makefile
|
||||
INSTALL_TARGET= install install.man
|
||||
|
||||
MAN1= bibtool.1
|
||||
PORTDOCS= bibtool.dvi ref_card.dvi c_lib.dvi
|
||||
|
||||
TXT_DOCS= Doc/bibtool.dvi Doc/ref_card.dvi Doc/c_lib.dvi
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= ${TXT_DOCS:S/^Doc\///}
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
post-build:
|
||||
cd ${WRKSRC} && ${MAKE} doc && ${MAKE} doc
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && ${MAKE} doc && ${MAKE} doc
|
||||
${MKDIR} ${DOCSDIR}
|
||||
for f in ${TXT_DOCS}; do \
|
||||
${INSTALL_MAN} ${WRKSRC}/$$f ${DOCSDIR}; \
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
for f in ${PORTDOCS}; do \
|
||||
${INSTALL_MAN} ${WRKSRC}/Doc/$$f ${STAGEDIR}${DOCSDIR}; \
|
||||
done
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,23 @@
|
||||
--- AutoConf/makefile.in.orig Sun Feb 8 17:46:11 2004
|
||||
+++ AutoConf/makefile.in Wed Nov 2 17:05:33 2005
|
||||
--- ./AutoConf/makefile.in.orig 2004-02-08 09:46:11.000000000 +0000
|
||||
+++ ./AutoConf/makefile.in 2014-01-25 23:08:47.000000000 +0000
|
||||
@@ -25,7 +25,7 @@
|
||||
# Configuration Section
|
||||
# =============================================================================
|
||||
#
|
||||
-prefix = @prefix@
|
||||
+prefix = $(DESTDIR)@prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
# -------------------------------------------------------
|
||||
@@ -42,7 +42,7 @@
|
||||
# Additionally name the section of the man pages to use.
|
||||
# This should be 1 (user commands), l (local), or n (new)
|
||||
#
|
||||
-MANDIR = @mandir@
|
||||
+MANDIR = $(DESTDIR)@mandir@
|
||||
MANSECT = 1
|
||||
|
||||
# -------------------------------------------------------
|
||||
@@ -67,7 +67,7 @@
|
||||
# Name the C compiler
|
||||
#
|
@ -1,5 +1,5 @@
|
||||
--- configure.orig Sun Feb 8 17:35:23 2004
|
||||
+++ configure Wed Nov 2 16:45:08 2005
|
||||
--- ./configure.orig 2004-02-08 09:35:23.000000000 +0000
|
||||
+++ ./configure 2014-01-25 23:08:47.000000000 +0000
|
||||
@@ -4566,12 +4566,12 @@
|
||||
kpathsea_dir=
|
||||
kpathsea_lib=
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- main.c.orig Wed Nov 2 16:45:23 2005
|
||||
+++ main.c Wed Nov 2 16:47:22 2005
|
||||
--- ./main.c.orig 2004-02-08 09:41:38.000000000 +0000
|
||||
+++ ./main.c 2014-01-25 23:08:47.000000000 +0000
|
||||
@@ -331,17 +331,6 @@
|
||||
|
||||
|
||||
|
@ -9,4 +9,5 @@ lib/BibTool/month.rsc
|
||||
lib/BibTool/opt.rsc
|
||||
lib/BibTool/sort_fld.rsc
|
||||
lib/BibTool/tex_def.rsc
|
||||
man/man1/bibtool.1.gz
|
||||
@dirrm lib/BibTool
|
||||
|
@ -4,7 +4,6 @@ PORTNAME= bibutils
|
||||
PORTVERSION= 5.0
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= SF/${PORTNAME}/
|
||||
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
@ -13,13 +12,11 @@ COMMENT= Program set interconverts between various bibliography formats
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ./configure --install-dir ${PREFIX}/bin
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
test: all
|
||||
cd ${WRKSRC}/test && ${GMAKE} all test
|
||||
@ -28,8 +25,6 @@ BINARIES= bib2xml biblatex2xml copac2xml ebi2xml end2xml endx2xml \
|
||||
isi2xml med2xml modsclean ris2xml wordbib2xml xml2ads \
|
||||
xml2bib xml2end xml2isi xml2ris xml2wordbib
|
||||
|
||||
.for binary in ${BINARIES}
|
||||
PLIST_FILES+= bin/${binary}
|
||||
.endfor
|
||||
PLIST_FILES= ${BINARIES:S,^,bin/,}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
textproc/bibutils/files/patch-Makefile_start
Normal file
11
textproc/bibutils/files/patch-Makefile_start
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./Makefile_start.orig 2014-01-25 23:16:40.000000000 +0000
|
||||
+++ ./Makefile_start 2014-01-25 23:19:20.000000000 +0000
|
||||
@@ -75,7 +75,7 @@
|
||||
$(MAKE) -C bin \
|
||||
EXEEXT=$(EXEEXT) \
|
||||
PROGSIN="$(PROGRAMS)" \
|
||||
- INSTALLDIR=$(INSTALLDIR) \
|
||||
+ INSTALLDIR=$(DESTDIR)$(INSTALLDIR) \
|
||||
install
|
||||
sed 's/VERSION/${VERSION}/g' packageconfig_start > lib/bibutils.pc
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ./configure.orig 2013-05-28 07:21:47.000000000 +0200
|
||||
+++ ./configure 2013-06-03 01:00:10.000000000 +0200
|
||||
--- ./configure.orig 2013-05-28 05:21:47.000000000 +0000
|
||||
+++ ./configure 2014-01-25 23:16:40.000000000 +0000
|
||||
@@ -247,7 +247,7 @@
|
||||
RANLIB='ranlib'
|
||||
POSTFIX='_netbsd'
|
||||
|
@ -16,15 +16,10 @@ PATCH_SITES= http://devel.ringlet.net/textproc/bomstrip/
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Strip Byte-Order Marks (BOM) from UTF-8 text
|
||||
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
||||
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
||||
INSTALL_DATA="${INSTALL_DATA}" \
|
||||
STRIP=""
|
||||
|
||||
MLINKS= bomstrip.1 bomstrip-files.1
|
||||
MAN1= bomstrip.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,7 @@
|
||||
bin/bomstrip
|
||||
bin/bomstrip-files
|
||||
man/man1/bomstrip.1.gz
|
||||
man/man1/bomstrip-files.1.gz
|
||||
%%DATADIR%%/source/bomstrip.awk
|
||||
%%DATADIR%%/source/bomstrip.b
|
||||
%%DATADIR%%/source/bomstrip.bf
|
||||
|
@ -11,17 +11,11 @@ PKGNAMEPREFIX= bsd-
|
||||
MAINTAINER= gabor@FreeBSD.org
|
||||
COMMENT= BSD-licensed version of diff from OpenBSD
|
||||
|
||||
USES= uidfix
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
MANCOMPRESSED= yes
|
||||
MAN1= bsddiff.1
|
||||
|
||||
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
|
||||
MANDIR="${MANPREFIX}/man/man" \
|
||||
CATDIR="${MANPREFIX}/man/man"
|
||||
|
||||
NO_STAGE= yes
|
||||
post-install:
|
||||
${LN} -s ${PREFIX}/bin/bsddiff ${PREFIX}/bin/diff
|
||||
${LN} -s /usr/bin/diff ${PREFIX}/bin/gnudiff
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,6 @@
|
||||
@exec /bin/ln -s %%PREFIX%%/bin/bsddiff %%PREFIX%%/bin/diff
|
||||
@exec /bin/ln -s /usr/bin/diff %%PREFIX%%/bin/gnudiff
|
||||
@unexec rm -f %D/bin/diff
|
||||
@exec /bin/ln -s %D/bin/bsddiff %D/bin/diff
|
||||
@unexec rm -f %D/bin/gnudiff
|
||||
@exec /bin/ln -s /usr/bin/diff %D/bin/gnudiff
|
||||
bin/bsddiff
|
||||
bin/diff
|
||||
bin/gnudiff
|
||||
man/man1/bsddiff.1.gz
|
||||
|
@ -12,22 +12,7 @@ PKGNAMEPREFIX= bsd-
|
||||
MAINTAINER= gabor@FreeBSD.org
|
||||
COMMENT= BSD-licensed version of grep
|
||||
|
||||
MANCOMPRESSED= maybe
|
||||
MAN1= grep.1
|
||||
MLINKS= grep.1 bzegrep.1 \
|
||||
grep.1 bzfgrep.1 \
|
||||
grep.1 bzgrep.1 \
|
||||
grep.1 egrep.1 \
|
||||
grep.1 fgrep.1 \
|
||||
grep.1 lzegrep.1 \
|
||||
grep.1 lzfgrep.1 \
|
||||
grep.1 lzgrep.1 \
|
||||
grep.1 xzegrep.1 \
|
||||
grep.1 xzfgrep.1 \
|
||||
grep.1 xzgrep.1 \
|
||||
grep.1 zgrep.1 \
|
||||
grep.1 zegrep.1 \
|
||||
grep.1 zfgrep.1
|
||||
USES= uidfix
|
||||
|
||||
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
|
||||
MANDIR="${MANPREFIX}/man/man" \
|
||||
@ -40,8 +25,7 @@ GNU_COMPAT_DESC= Use GNU regex library (recommended)
|
||||
|
||||
CONFLICTS= gnugrep-*
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
PLIST_SUB+= NLS=""
|
||||
@ -59,8 +43,4 @@ pre-install:
|
||||
${MKDIR} ${PREFIX}/share/nls/gl_ES.ISO8859-1
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${LN} -s ${PREFIX}/bin/grep ${PREFIX}/bin/bsdgrep
|
||||
${LN} -s /usr/bin/grep ${PREFIX}/bin/gnugrep
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,12 +1,12 @@
|
||||
@exec /bin/ln -s %%PREFIX%%/bin/grep %%PREFIX%%/bin/bsdgrep
|
||||
@exec /bin/ln -s /usr/bin/grep %%PREFIX%%/bin/gnugrep
|
||||
bin/bsdgrep
|
||||
@unexec rm -f %D/bin/bsdgrep
|
||||
@exec /bin/ln -s %D/bin/grep %D/bin/bsdgrep
|
||||
@unexec rm -f %D/bin/gnugrep
|
||||
@exec /bin/ln -s /usr/bin/grep %D/bin/gnugrep
|
||||
bin/bzegrep
|
||||
bin/bzfgrep
|
||||
bin/bzgrep
|
||||
bin/egrep
|
||||
bin/fgrep
|
||||
bin/gnugrep
|
||||
bin/grep
|
||||
bin/lzegrep
|
||||
bin/lzfgrep
|
||||
@ -17,6 +17,21 @@ bin/xzgrep
|
||||
bin/zgrep
|
||||
bin/zegrep
|
||||
bin/zfgrep
|
||||
man/man1/bzegrep.1.gz
|
||||
man/man1/bzfgrep.1.gz
|
||||
man/man1/bzgrep.1.gz
|
||||
man/man1/egrep.1.gz
|
||||
man/man1/fgrep.1.gz
|
||||
man/man1/grep.1.gz
|
||||
man/man1/lzegrep.1.gz
|
||||
man/man1/lzfgrep.1.gz
|
||||
man/man1/lzgrep.1.gz
|
||||
man/man1/xzegrep.1.gz
|
||||
man/man1/xzfgrep.1.gz
|
||||
man/man1/xzgrep.1.gz
|
||||
man/man1/zegrep.1.gz
|
||||
man/man1/zfgrep.1.gz
|
||||
man/man1/zgrep.1.gz
|
||||
%%NLS%%share/nls/es_ES.ISO8859-1/grep.cat
|
||||
%%NLS%%share/nls/gl_ES.ISO8859-1/grep.cat
|
||||
%%NLS%%share/nls/hu_HU.ISO8859-2/grep.cat
|
||||
|
@ -15,11 +15,6 @@ USE_LDCONFIG= yes
|
||||
USES= perl5
|
||||
USE_PERL5= build
|
||||
|
||||
MAN3= btparse.3 bt_language.3 bt_input.3 bt_traversal.3 \
|
||||
bt_postprocess.3 bt_macros.3 bt_split_names.3 \
|
||||
bt_format_names.3 bt_misc.3
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
||||
|
||||
|
@ -5,3 +5,12 @@ lib/libbtparse.so
|
||||
lib/libbtparse.la
|
||||
lib/libbtparse.a
|
||||
libdata/pkgconfig/btparse.pc
|
||||
man/man3/btparse.3.gz
|
||||
man/man3/bt_language.3.gz
|
||||
man/man3/bt_input.3.gz
|
||||
man/man3/bt_traversal.3.gz
|
||||
man/man3/bt_postprocess.3.gz
|
||||
man/man3/bt_macros.3.gz
|
||||
man/man3/bt_split_names.3.gz
|
||||
man/man3/bt_format_names.3.gz
|
||||
man/man3/bt_misc.3.gz
|
||||
|
Loading…
Reference in New Issue
Block a user