From 5db5f894e9e24ddd35c2828a524ef0702236d8e5 Mon Sep 17 00:00:00 2001
From: jlam <jlam@pkgsrc.org>
Date: Sat, 17 Dec 2005 18:39:24 +0000
Subject: Initial import of print/foomatic-ppds, which is a collection of PPD
 files for use with foomatic-rip.  This collection is from the PPD tarball
 generated from the Foomatic printer database on 2005-12-17.

---
 print/foomatic-ppds/DESCR           |  4 ++++
 print/foomatic-ppds/Makefile        | 39 +++++++++++++++++++++++++++++++++++++
 print/foomatic-ppds/Makefile.common | 11 +++++++++++
 print/foomatic-ppds/PLIST           |  1 +
 print/foomatic-ppds/distinfo        |  5 +++++
 5 files changed, 60 insertions(+)
 create mode 100644 print/foomatic-ppds/DESCR
 create mode 100644 print/foomatic-ppds/Makefile
 create mode 100644 print/foomatic-ppds/Makefile.common
 create mode 100644 print/foomatic-ppds/PLIST
 create mode 100644 print/foomatic-ppds/distinfo

diff --git a/print/foomatic-ppds/DESCR b/print/foomatic-ppds/DESCR
new file mode 100644
index 00000000000..a4bf9fbecb6
--- /dev/null
+++ b/print/foomatic-ppds/DESCR
@@ -0,0 +1,4 @@
+The Foomatic PPD collection includes suitable PPDs for printers listed
+in the Foomatic printer/driver database.  Together with the
+foomatic-filters package, this collection of PPDs allows many
+non-PostScript printers to function as if they were PostScript printers.
diff --git a/print/foomatic-ppds/Makefile b/print/foomatic-ppds/Makefile
new file mode 100644
index 00000000000..3b97a5092f2
--- /dev/null
+++ b/print/foomatic-ppds/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/17 18:39:24 jlam Exp $
+
+.include "Makefile.common"
+
+DISTNAME=	foomatic-filters-ppds-${FOOMATIC_PPDS_VERSION}
+PKGNAME=	${DISTNAME:S/-filters-/-/}
+
+# The definitive location of the distfile is at www.linuxprinting.org,
+# but this tarball is regenerated daily from the Foomatic database.
+# Rather than track this file very aggressively, we'll place a new
+# copy at MASTER_SITE_LOCAL periodically and update this package
+# accordingly.
+#
+MASTER_SITES=	${MASTER_SITE_LOCAL} \
+		http://www.linuxprinting.org/download/foomatic/
+
+MAINTAINER=	jlam@pkgsrc.org
+COMMENT=	Foomatic PPDs collection
+
+DEPENDS=	foomatic-filters>=3.0.2:../../print/foomatic-filters
+
+USE_PKGINSTALL=	yes
+REQD_DIRS=	share/foomatic
+PLIST_SRC=	${WRKDIR}/PLIST_SRC
+
+do-build:
+	${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
+	cd ${WRKSRC}/share;						\
+	${FIND} ppd -type f -print | ${SORT} -u |			\
+	${SED} -e "s|^|share/foomatic/|" >> ${PLIST_SRC}
+	cd ${WRKSRC}/share;						\
+	${FIND} ppd -type d -print | ${SORT} -ur |			\
+	${SED} -e "s|^|@dirrm share/foomatic/|" >> ${PLIST_SRC}
+	${ECHO} "@dirrm share/foomatic" >> ${PLIST_SRC}
+
+do-install:
+	${CP} -R ${WRKSRC}/share/ppd ${PREFIX}/share/foomatic/ppd
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/foomatic-ppds/Makefile.common b/print/foomatic-ppds/Makefile.common
new file mode 100644
index 00000000000..00d37984384
--- /dev/null
+++ b/print/foomatic-ppds/Makefile.common
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2005/12/17 18:39:24 jlam Exp $
+#
+# This Makefile.common file is included by the following Makefiles:
+#
+#	print/foomatic-ppds/Makefile
+#	print/foomatic-ppds-cups/Makefile
+#
+
+FOOMATIC_PPDS_VERSION=	20051217
+CATEGORIES=		print
+HOMEPAGE=		http://www.linuxprinting.org/foomatic.html
diff --git a/print/foomatic-ppds/PLIST b/print/foomatic-ppds/PLIST
new file mode 100644
index 00000000000..acb2154e697
--- /dev/null
+++ b/print/foomatic-ppds/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/17 18:39:24 jlam Exp $
diff --git a/print/foomatic-ppds/distinfo b/print/foomatic-ppds/distinfo
new file mode 100644
index 00000000000..4ba8072af86
--- /dev/null
+++ b/print/foomatic-ppds/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/17 18:39:24 jlam Exp $
+
+SHA1 (foomatic-filters-ppds-20051217.tar.gz) = e9b21db17f1a1a78070df4b3dc685783e119c74b
+RMD160 (foomatic-filters-ppds-20051217.tar.gz) = 75c294cc549213518751350b0dcff91f214ddc44
+Size (foomatic-filters-ppds-20051217.tar.gz) = 9012749 bytes
-- 
cgit v1.2.3