summaryrefslogtreecommitdiff
path: root/converters/pstotext/Makefile
diff options
context:
space:
mode:
authorobache <obache>2010-04-25 12:46:19 +0000
committerobache <obache>2010-04-25 12:46:19 +0000
commitac8fa06eaf208bae3a3e4f68a547824b6e3b39fd (patch)
treec75ed9abf1ea08206780468bebaee5340c6dec8c /converters/pstotext/Makefile
parent3216676a9ab8d27b366bfdd7defe2a421355a7c4 (diff)
downloadpkgsrc-ac8fa06eaf208bae3a3e4f68a547824b6e3b39fd.tar.gz
Import pstotext-1.9 as converters/pstotext.
Packaged by Stefan Schaeckeler in pkgsrc-wip. Pstotext extracts plain-text from postscript files (and somewhat less reliable from pdf files).
Diffstat (limited to 'converters/pstotext/Makefile')
-rw-r--r--converters/pstotext/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/converters/pstotext/Makefile b/converters/pstotext/Makefile
new file mode 100644
index 00000000000..b2e4b047806
--- /dev/null
+++ b/converters/pstotext/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/04/25 12:46:19 obache Exp $
+#
+
+DISTNAME= pstotext-1.9
+CATEGORIES= converters print
+MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/
+
+MAINTAINER= schaecsn@gmx.net
+HOMEPAGE= http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm
+COMMENT= Postscript to text converter
+#LICENSE= see the end of pstotext.txt.
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gs:run
+USE_TOOLS+= gmake
+
+SUBST_CLASSES+= gs
+SUBST_STAGE.gs= do-configure
+SUBST_FILES.gs= main.c
+SUBST_SED.gs= -e 's|@GS_CMD@|${TOOLS_PATH.gs}|'
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/${PKGBASE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pstotext ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/pstotext.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA} ${WRKSRC}/pstotext.hlp ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/pstotext.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+
+.include "../../mk/bsd.pkg.mk"