aboutsummaryrefslogtreecommitdiff
path: root/textproc/catdoc
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-30 14:58:58 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-30 14:58:58 +0000
commit5d761d2acab6e9970f42b1a6dfe7de8f0021b76d (patch)
tree03e9defc03cb650f08648f93ed97da03c2c6f1ac /textproc/catdoc
parent519c333939a2bd914721a9de52ffd9b30fb94e29 (diff)
downloadports-5d761d2acab6e9970f42b1a6dfe7de8f0021b76d.tar.gz
ports-5d761d2acab6e9970f42b1a6dfe7de8f0021b76d.zip
- Support staging
Notes
Notes: svn path=/head/; revision=332123
Diffstat (limited to 'textproc/catdoc')
-rw-r--r--textproc/catdoc/Makefile25
-rw-r--r--textproc/catdoc/pkg-plist55
2 files changed, 16 insertions, 64 deletions
diff --git a/textproc/catdoc/Makefile b/textproc/catdoc/Makefile
index 6de9999c9f9d..d339a58b0242 100644
--- a/textproc/catdoc/Makefile
+++ b/textproc/catdoc/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 0.94.2
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
- ${MASTER_SITE_LOCAL:S|%SUBDIR%|amdmi3|} \
+ LOCAL/amdmi3 \
ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
ftp://ftp.demos.ru/pub/sunfreeware/SOURCES/
@@ -14,34 +14,33 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= MS Word/Excel converter to plain ASCII or TeX. TK viewer included
GNU_CONFIGURE= yes
-USE_GMAKE= yes
-MAN1= catdoc.1 xls2csv.1 catppt.1
+CONFIGURE_ARGS= --with-install-root="${STAGEDIR}"
+USES= gmake
+
+PORTDATA= *
OPTIONS_DEFINE= WORDVIEW
+OPTIONS_DEFAULT=WORDVIEW
+OPTIONS_SUB= yes
+
WORDVIEW_DESC= Build Tcl/Tk document viewer
-OPTIONS_DEFAULT= WORDVIEW
.if !defined(LANG) || ${LANG} != ru_RU.KOI8-R
# Remove the below line to get Cyrillic code page support instead
CFLAGS+= -DLATIN1=1
.endif
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in
-
-.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWORDVIEW}
USE_TK= 84+
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
CONFIGURE_ARGS+= --with-wish=${WISH}
-PLIST_SUB+= WORDVIEW=""
-MAN1+= wordview.1
.else
CONFIGURE_ARGS+= --disable-wordview
-PLIST_SUB+= WORDVIEW="@comment "
.endif
-.include <bsd.port.post.mk>
+post-patch:
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in
+
+.include <bsd.port.mk>
diff --git a/textproc/catdoc/pkg-plist b/textproc/catdoc/pkg-plist
index f19e20b413ba..13f5aa54be40 100644
--- a/textproc/catdoc/pkg-plist
+++ b/textproc/catdoc/pkg-plist
@@ -2,54 +2,7 @@ bin/catdoc
bin/catppt
%%WORDVIEW%%bin/wordview
bin/xls2csv
-%%DATADIR%%/8859-1.txt
-%%DATADIR%%/8859-10.txt
-%%DATADIR%%/8859-11.txt
-%%DATADIR%%/8859-13.txt
-%%DATADIR%%/8859-14.txt
-%%DATADIR%%/8859-15.txt
-%%DATADIR%%/8859-2.txt
-%%DATADIR%%/8859-3.txt
-%%DATADIR%%/8859-4.txt
-%%DATADIR%%/8859-5.txt
-%%DATADIR%%/8859-6.txt
-%%DATADIR%%/8859-7.txt
-%%DATADIR%%/8859-8.txt
-%%DATADIR%%/8859-9.txt
-%%DATADIR%%/ascii.replchars
-%%DATADIR%%/ascii.specchars
-%%DATADIR%%/cp1250.txt
-%%DATADIR%%/cp1251.txt
-%%DATADIR%%/cp1252.txt
-%%DATADIR%%/cp1253.txt
-%%DATADIR%%/cp1254.txt
-%%DATADIR%%/cp1255.txt
-%%DATADIR%%/cp1256.txt
-%%DATADIR%%/cp1257.txt
-%%DATADIR%%/cp1258.txt
-%%DATADIR%%/cp437.txt
-%%DATADIR%%/cp850.txt
-%%DATADIR%%/cp852.txt
-%%DATADIR%%/cp855.txt
-%%DATADIR%%/cp857.txt
-%%DATADIR%%/cp860.txt
-%%DATADIR%%/cp861.txt
-%%DATADIR%%/cp862.txt
-%%DATADIR%%/cp863.txt
-%%DATADIR%%/cp864.txt
-%%DATADIR%%/cp865.txt
-%%DATADIR%%/cp866.txt
-%%DATADIR%%/cp869.txt
-%%DATADIR%%/cp874.txt
-%%DATADIR%%/koi8-r.txt
-%%DATADIR%%/koi8-u.txt
-%%DATADIR%%/mac-arabic.txt
-%%DATADIR%%/mac-centeuro.txt
-%%DATADIR%%/mac-cyrillic.txt
-%%DATADIR%%/mac-greek.txt
-%%DATADIR%%/mac-hebrew.txt
-%%DATADIR%%/mac-roman.txt
-%%DATADIR%%/tex.replchars
-%%DATADIR%%/tex.specchars
-%%DATADIR%%/us-ascii.txt
-@dirrm %%DATADIR%%
+man/man1/catdoc.1.gz
+man/man1/catppt.1.gz
+%%WORDVIEW%%man/man1/wordview.1.gz
+man/man1/xls2csv.1.gz