Skip to content

Commit

Permalink
net-print/pappl: new package, add 1.3.0
Browse files Browse the repository at this point in the history
As reported by it's owner, "PAPPL is a simple C-based framework/library
for developing CUPS Printer Applications, which are the recommended
replacement for printer drivers. It was specifically developed to support
LPrint and a future Gutenprint Printer Application but is sufficiently
general purpose to support any kind of printer or driver that can be used
on desktops, servers, and in embedded environments."

Test works and doc is already fixed to follow our guideline.

Signed-off-by: Marco Scardovi <mscardovi@icloud.com>
  • Loading branch information
scardracs committed Dec 3, 2022
1 parent 770b224 commit e92bc0f
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
1 change: 1 addition & 0 deletions net-print/pappl/Manifest
@@ -0,0 +1 @@
DIST pappl-1.3.0.tar.gz 2547620 BLAKE2B 32c2a57c4650f8993ed36e9fa860784b3551df0d0a88dc9f02e9301fd4a5e39978bac983130b436349464c3defd715d37e0c2bb7c439c8d9043c0b83d1cf465d SHA512 8702f31bb76da47673cfcaac7a0a06f12d9b4c5a1b2af28046c171e9665150b47e8b3148aa0c0dd924207ec4dbd3280ca7eb354c375a52cc76186bcda9340bb9
22 changes: 22 additions & 0 deletions net-print/pappl/files/pappl-fix-configure.patch
@@ -0,0 +1,22 @@
From 950e25320218ddb2b3ea92a5be2d16864110e9e0 Mon Sep 17 00:00:00 2001
From: Marco Scardovi <100232474+scardracs@users.noreply.github.com>
Date: Sat, 3 Dec 2022 16:03:02 +0100
Subject: [PATCH] Update configure

---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 7438abe..3c2e18b 100755
--- a/configure
+++ b/configure
@@ -803,7 +803,7 @@ localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+docdir='${datarootdir}/doc/${P}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
23 changes: 23 additions & 0 deletions net-print/pappl/files/pappl-fix-docdir.patch
@@ -0,0 +1,23 @@
From 38d20db57d943b81ecc4537750a5ccaf471d8d46 Mon Sep 17 00:00:00 2001
From: Marco Scardovi <100232474+scardracs@users.noreply.github.com>
Date: Sat, 3 Dec 2022 15:55:31 +0100
Subject: [PATCH] Update Makefile

---
doc/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/Makefile b/doc/Makefile
index c7da2a13..a25ca8b5 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -35,9 +35,9 @@ depend:
# Install everything
install:
echo Installing documentation in $(BUILDROOT)/$(datadir)/doc/pappl...
- $(INSTALL) -d -m 755 $(BUILDROOT)/$(datadir)/doc/pappl
+ $(INSTALL) -d -m 755 $(BUILDROOT)/$(datadir)/doc/"${P}"
for file in $(DOCFILES); do \
- $(INSTALL) -c -m 644 $$file $(BUILDROOT)/$(datadir)/doc/pappl; \
+ $(INSTALL) -c -m 644 $$file $(BUILDROOT)/$(datadir)/doc/"${P}"; \
done
15 changes: 15 additions & 0 deletions net-print/pappl/metadata.xml
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>mscardovi@icloud.com</email>
<name>Marco Scardovi</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">michaelrsweet/pappl</remote-id>
</upstream>
</pkgmetadata>
38 changes: 38 additions & 0 deletions net-print/pappl/pappl-1.3.0.ebuild
@@ -0,0 +1,38 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="C-based framework/library for developing CUPS Printer Applications"
HOMEPAGE="https://www.msweet.org/pappl/ https://github.com/michaelrsweet/pappl"
SRC_URI="https://github.com/michaelrsweet/pappl/releases/download/v${PV}/${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RESTRICT="!test? ( test )"

RDEPEND="
>=media-libs/libjpeg-turbo-2.0
media-libs/libpng
>=net-dns/avahi-0.8
net-libs/gnutls
>=net-print/cups-2.2:=
sys-libs/pam
sys-libs/zlib
virtual/libusb
"

PATCHES=(
"${FILESDIR}/${PN}-fix-docdir.patch"
"${FILESDIR}/${PN}-fix-configure.patch"
)

src_configure() {
# The build system uses only DSOFLAGS and not
# LDFLAGS to build some libraries.
export DSOFLAGS="${LDFLAGS}"
econf
}

0 comments on commit e92bc0f

Please sign in to comment.