summaryrefslogtreecommitdiff
path: root/recipes/enscript
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/enscript
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/enscript')
-rw-r--r--recipes/enscript/enscript-1.6.4/autotools.patch94
-rw-r--r--recipes/enscript/enscript_1.6.4.bb10
2 files changed, 104 insertions, 0 deletions
diff --git a/recipes/enscript/enscript-1.6.4/autotools.patch b/recipes/enscript/enscript-1.6.4/autotools.patch
new file mode 100644
index 0000000000..fa96b8ab6b
--- /dev/null
+++ b/recipes/enscript/enscript-1.6.4/autotools.patch
@@ -0,0 +1,94 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- enscript-1.6.4/configure.in~autotools
++++ enscript-1.6.4/configure.in
+@@ -11,6 +11,8 @@
+
+ AC_PROG_INSTALL
+
++AC_PROG_CC
++
+ AC_ARG_WITH(cc,
+ [ --with-cc(=CC) use system's native compiler (or compiler CC)],
+ if test "X$withval" != "Xno"; then
+@@ -25,10 +27,6 @@
+ fi
+ )
+
+-if test "X$CC" = "X"; then
+- AC_PROG_CC
+-fi
+-
+ AC_ISC_POSIX
+ AM_C_PROTOTYPES
+
+--- enscript-1.6.4/Makefile.am~autotools
++++ enscript-1.6.4/Makefile.am
+@@ -31,4 +31,4 @@
+ 88595.txt 88597.txt 88599.txt 885910.txt ibmpc.txt mac.txt vms.txt \
+ hp8.txt koi8.txt mtr.eps mtr_small.eps mtr_tiny.eps
+
+-ACLOCAL_AMFLAGS = -I m4
++#ACLOCAL_AMFLAGS = -I m4
+--- enscript-1.6.4/afm/Makefile.am~autotools
++++ enscript-1.6.4/afm/Makefile.am
+@@ -36,11 +36,11 @@
+ EXTRA_DIST = font.map $(default_afm) $(public_fonts)
+
+ install-data-local:
+- $(top_srcdir)/mkinstalldirs $(datadir)/enscript
+- $(top_srcdir)/mkinstalldirs $(datadir)/enscript/afm
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript/afm
+ for f in $(EXTRA_DIST); do \
+- $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/afm/$$f; \
++ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(datadir)/enscript/afm/$$f; \
+ done
+
+ uninstall-local:
+- rm -rf $(datadir)/enscript/afm
++ rm -rf $(DESTDIR)$(datadir)/enscript/afm
+--- enscript-1.6.4/lib/Makefile.am~autotools
++++ enscript-1.6.4/lib/Makefile.am
+@@ -38,15 +38,15 @@
+ all-local: enscript.cfg
+
+ install-data-local: enscript.cfg
+- $(top_srcdir)/mkinstalldirs $(sysconfdir)
+- if test -r $(sysconfdir)/enscript.cfg; then \
+- cp $(sysconfdir)/enscript.cfg $(sysconfdir)/enscript.cfg.old; \
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
++ if test -r $(DESTDIR)$(sysconfdir)/enscript.cfg; then \
++ cp $(DESTDIR)$(sysconfdir)/enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg.old; \
+ else :; \
+ fi
+- $(INSTALL_DATA) enscript.cfg $(sysconfdir)/enscript.cfg
++ $(INSTALL_DATA) enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg
+
+ uninstall-local:
+- rm -f $(sysconfdir)/enscript.cfg
++ rm -f $(DESTDIR)$(sysconfdir)/enscript.cfg
+
+ enscript.cfg: $(srcdir)/enscript.cfg.in Makefile
+ sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g; s%@BINDIR@%$(bindir)%g; s%@spooler@%@SPOOLER@%g; s%@pslevel@%@PSLEVEL@%g' \
+--- enscript-1.6.4/states/hl/Makefile.am~autotools
++++ enscript-1.6.4/states/hl/Makefile.am
+@@ -45,11 +45,11 @@
+ EXTRA_DIST = $(states)
+
+ install-data-local:
+- $(top_srcdir)/mkinstalldirs $(datadir)/enscript
+- $(top_srcdir)/mkinstalldirs $(datadir)/enscript/hl
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript/hl
+ for f in $(states); do \
+- $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/hl/$$f; \
++ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(datadir)/enscript/hl/$$f; \
+ done
+
+ uninstall-local:
+- rm -rf $(datadir)/enscript/hl
++ rm -rf $(DESTDIR)$(datadir)/enscript/hl
diff --git a/recipes/enscript/enscript_1.6.4.bb b/recipes/enscript/enscript_1.6.4.bb
new file mode 100644
index 0000000000..0818c8f436
--- /dev/null
+++ b/recipes/enscript/enscript_1.6.4.bb
@@ -0,0 +1,10 @@
+SECTION = "console/utils"
+DESCRIPTION = "GNU enscript is a drop-in replacement for the enscript program. \
+Enscript converts ASCII files to PostScript and stores generated \
+output to a file or sends it directly to the printer."
+LICENSE = "GPL"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/e/enscript/enscript_${PV}.orig.tar.gz \
+ file://autotools.patch;patch=1"
+
+inherit autotools