This commit is contained in:
Torsten Kurbad
2023-11-13 14:00:50 +01:00
parent 800fc79e87
commit 73663ebfdb
27 changed files with 880 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
EBUILD cups-ptouch-9999.ebuild 1126 BLAKE2B 36bf8c50e719b2299f348c3abf7439d6484f47a8400a29939fb68642ce27eb4a0d2d71b68c6c1b79e5b75a050f4d8f6b00d6826c5449ad1267f6e00fbd996c82 SHA512 527d5ca5c58b1e7d268c7ec8f9cc902767be4d258cf7c3c5b82020cf66b4b7e008e44304ae8dfc36d283bbaf99a9e4e0fd707e26f74da639613e872c950ea1fe
@@ -0,0 +1,51 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=7
inherit multilib
MY_PN="printer-driver-ptouch"
DESCRIPTION="P-Touch PT-series and QL-series printer driver for Linux (under CUPS)"
HOMEPAGE="https://github.com/philpem/printer-driver-ptouch"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/philpem/${MY_PN}.git"
KEYWORDS=""
inherit autotools git-r3
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/philpem/${MY_PN}/archive/refs/tags/v${PV}.tar.gz"
fi
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND=""
DEPEND="net-print/cups
net-print/foomatic-db-engine
${RDEPEND}"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
fi
default
}
src_configure() {
econf --libdir="/usr/libexec"
}
src_install() {
default
# Fix collisions
rm "${D}"/usr/share/foomatic/db/source/printer/Brother-PT-{1500PC,18R,1950,1950VP,1960,2300,2420PC,2450DX,2500PC,2600,2610,3600,550A,9200DX,9200PC,9400,9500PC,9600,PC}.xml
rm "${D}"/usr/share/foomatic/db/source/printer/Brother-QL-{5{00,50},650TD}.xml
}
+6
View File
@@ -0,0 +1,6 @@
AUX 4.0.12-use-pkgconfig.patch 1010 BLAKE2B d37cb4ad77e191229c0ca7ae64b8f51b7ce275ea7f7434b0fdf629c0773f2b4f742e05a6afb06a627d4f7bb609e053f00e994bbea8b157d959a5852e8dcf135e SHA512 d0ea9514dbc7354d2d771af049de04455ccdf9145823174b99f963c82d1a4453f3198e31abc6a4953883f860df86b55452a2bfc0dd269112c029df6eddd3e1e6
AUX 4.0.7-perl-module.patch 323 BLAKE2B c291580e579f27efe5d1bbf26ff1a5ad7345cae33a8e1499437f096691c53f6d43be3c4c55491bdcc7c852d9538064a1d9df575012f4d83c451a6c7920d466a3 SHA512 913cf4dca46b028581d7e5cf11ef8a4d03b3a0ad415059eea4db5825a67c18e2e62adff26c7a7d67b6af78109c176553849a28b57d06c383ff59c8b0c12a514a
AUX 4.0.7-respect-ldflag.patch 596 BLAKE2B b540f6b0a03a8abe28e245069ce1703e8505862c326ae8fa95c9b548c8eb908b90b6c7681d928b0e74a9963daec0a8fba6f7e37efaadfd79d46aa8961da615d7 SHA512 afb080f281c1c5a6b0011964a7c73e9f843fa347543324b4441c40aabe7b534a5689ae4be285095e43b91f5cf37f4cbd1d8f091740fc3c1824eb0099aabc9ca8
DIST foomatic-db-engine-4.0.12.tar.gz 360499 BLAKE2B b03ba0a0cddc2d1c59a64ffa33e577f991d36c478e3f7b43f66474c749b7fb546f0ad5b04fee056c69532a6f126b87c95a72e5561443ef79bf3bdfed650d6b07 SHA512 b7e99ace6a632e9b0213183bd2c6c2d11ca072ea0414e8ca569082b7ec183dd81c80594ad63fdee82d761ae36d4fce9d3c881569a95a6085ec326ef7fd21154f
EBUILD foomatic-db-engine-4.0.12-r1.ebuild 1269 BLAKE2B 7b30bab883b60de599f8771feb115a2db9a22490be5f6a2b4269c64118e1bf70f325eb9b3a534a5e61cb0466b56347d3856ecda4fd61888087f9192bcc515fba SHA512 8c574ac205e38acb9e79ad59e26aaccdc5d559f5a10c3ad87ab02a9201ce312077df86fb46dddbd87b27467ee95d41f66a02d3698c40c20ee6b5931ee417ec21
MISC metadata.xml 260 BLAKE2B ef27f93753b1b9b96d35941f8a39c7e3b1695a49bff8076cb92b718524ddf1449ffa97d26ae289ad493695a8bfbeadb6bee0030f649bef02e0ae155ca851713e SHA512 94c019f5d5e8bec9d817d4b192ae0b87effc9f73283800b6ee7b5fe50a85bf6e245eb9720c2d8f3b497b40c7e298969c5e23c5afe3af14384eee92e76afacc8c
@@ -0,0 +1,35 @@
https://bugs.linuxfoundation.org/show_bug.cgi?id=1339
From: Brian Norris <computersforpeace@gmail.com>
Date: Fri, 15 Jan 2016 11:12:03 -0800
Subject: [PATCH] configure.ac: use pkg-config instead of xml2-config
The former is much more standard, and libxml2 ships a .pc file.
Leave libxml alone, since I haven't tested it, and it may not ship a .pc
file.
---
configure.ac | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1562ee61b9d5..0ed5323ff2e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,12 +22,7 @@ dnl LIBS="$LIBS"
# Test for libxml
#
xml_version=
-AC_PATH_PROG(XML2_CONFIG, xml2-config)
-if test ! -z "$XML2_CONFIG"; then
- xml_version=libxml2
- XML_CFLAGS=`$XML2_CONFIG --cflags`
- XML_LIBS=`$XML2_CONFIG --libs`
-fi
+PKG_CHECK_MODULES(XML, libxml-2.0, [xml_version=libxml2])
if test -z "$xml_version"; then
AC_PATH_PROG(XML_CONFIG, xml-config)
if test ! -z "$XML_CONFIG"; then
--
2.1.2
@@ -0,0 +1,11 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,7 +42,7 @@ LOCAL_LIBDIR=@LOCAL_LIBDIR@
FOOMATIC_RIP=@FOOMATIC_RIP@
# foomatic-rip path for a "make inplace" installation
-LOCAL_FOOMATIC_RIP=@LOCAL_FOOMATIC_RIP@
+LOCAL_FOOMATIC_RIP=@FOOMATIC_RIP@
# Locations for installing the components of this package
BINDIR=$(bindir)
@@ -0,0 +1,15 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -231,10 +231,10 @@
( cd lib && $(PERL) Makefile.PL verbose INSTALLDIRS=$(PERL_INSTALLDIRS) )
foomatic-combo-xml: foomatic-combo-xml.c
- $(CC) $(CFLAGS) -o foomatic-combo-xml foomatic-combo-xml.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o foomatic-combo-xml foomatic-combo-xml.c
foomatic-perl-data: foomatic-perl-data.c
- $(CC) $(CFLAGS) $(XML_CFLAGS) -o foomatic-perl-data foomatic-perl-data.c $(XML_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o foomatic-perl-data foomatic-perl-data.c $(XML_CFLAGS) $(XML_LIBS)
man: lib/Foomatic/Defaults.pm
chmod a+rx ./makeMan
@@ -0,0 +1,67 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools perl-module
DESCRIPTION="Generates ppds out of xml foomatic printer description files"
HOMEPAGE="http://www.linuxprinting.org/foomatic.html"
SRC_URI="http://www.openprinting.org/download/foomatic/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
BDEPEND="
net-print/cups
virtual/pkgconfig"
RDEPEND="
dev-libs/libxml2
>=net-print/cups-filters-1.0.43-r1[foomatic]
"
DEPEND="${RDEPEND}"
PDEPEND="net-print/foomatic-db"
src_prepare() {
default
eapply \
"${FILESDIR}"/4.0.7-perl-module.patch \
"${FILESDIR}"/4.0.7-respect-ldflag.patch \
"${FILESDIR}"/4.0.12-use-pkgconfig.patch
sed -i -e "s:@LIB_CUPS@:$(cups-config --serverbin):" Makefile.in || die
eautoreconf
cd lib || die
perl-module_src_prepare
}
src_configure() {
default
cd lib || die
perl-module_src_configure
}
src_compile() {
emake defaults
default
cd lib || die
perl-module_src_compile
}
src_test() {
cd lib || die
perl-module_src_test
}
src_install() {
default
dodoc USAGE
cd lib || die
perl-module_src_install
pushd "${S}/lib/Foomatic/"
perl_domodule -C Foomatic Defaults.pm
}
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>printing@gentoo.org</email>
<name>Gentoo Printing Project</name>
</maintainer>
</pkgmetadata>