summaryrefslogtreecommitdiff
path: root/textproc/dbtoepub/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/dbtoepub/Makefile')
-rw-r--r--textproc/dbtoepub/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/textproc/dbtoepub/Makefile b/textproc/dbtoepub/Makefile
new file mode 100644
index 00000000000..e821848169c
--- /dev/null
+++ b/textproc/dbtoepub/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2011/04/19 10:03:37 roy Exp $
+#
+
+.include "../../textproc/docbook-xsl/Makefile.common"
+
+PKGNAME= dbtoepub-${DISTNAME:S/docbook-xsl-//}
+COMMENT= DocBook to epub converter
+
+DEPENDS+= \
+ docbook-xsl>=${DISTNAME:S/docbook-xsl-//}:../../textproc/docbook-xsl
+
+REPLACE_RUBY+= epub/bin/dbtoepub
+
+do-install:
+ ${ECHO} "${INSTALL_DATA_DIR} ${DESTDIR}${XSLDIR}/epub"
+ ${ECHO} "cd ${WRKSRC} && pax -rw -pp -pm epub ${DESTDIR}${XSLDIR}/"
+ cd ${WRKSRC} && pax -rw -pp -pm epub ${DESTDIR}${XSLDIR}/
+ for f in `${FIND} ${DESTDIR}${XSLDIR} -name \\*.orig -print` ; do \
+ ${ECHO} "Remove .orig file $$f" ; \
+ ${RM} $$f ; \
+ done
+
+.include "../../lang/ruby/buildlink3.mk"
+.include "../../lang/ruby/replace.mk"
+.include "../../mk/bsd.pkg.mk"