summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-27 00:31:17 +0000
committerSam James <sam@gentoo.org>2021-02-27 01:00:11 +0000
commit459e341ce4c7eae9e63f64152005614feb93f9c9 (patch)
treedeaeb1fe542a9a167c73663f9e30fa4eaa112117 /media-libs/jbig2enc
parentmedia-libs/jbig2enc: port to EAPI 7 (diff)
downloadgentoo-459e341ce4c7eae9e63f64152005614feb93f9c9.tar.gz
gentoo-459e341ce4c7eae9e63f64152005614feb93f9c9.tar.bz2
gentoo-459e341ce4c7eae9e63f64152005614feb93f9c9.zip
media-libs/jbig2enc: bump to 0.29
Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/jbig2enc')
-rw-r--r--media-libs/jbig2enc/Manifest1
-rw-r--r--media-libs/jbig2enc/jbig2enc-0.29.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/media-libs/jbig2enc/Manifest b/media-libs/jbig2enc/Manifest
index a719b0fd93c6..a8fb8d779ab9 100644
--- a/media-libs/jbig2enc/Manifest
+++ b/media-libs/jbig2enc/Manifest
@@ -1 +1,2 @@
DIST jbig2enc-0.28.tar.gz 39879 BLAKE2B 08cbb2f2a5277085a592d18a8db529d2e5f79f69eaa5392f2b06b920f7d1651c3c73795ba2e43ae843fd5720a1406633b5429ab0b1fe260a6308da4cf10868b9 SHA512 81d194fb648fe7a866302796fd5e2adbb213d52193a279a94dbc5918ce3480561ea204e8497125eed5d6c6e4c6d089f7f35a89ef98bc484ca753ffde23e444c6
+DIST jbig2enc-0.29.tar.gz 1108212 BLAKE2B 44efc2afecb2ca581711c58e9abfed7ae790053e6a725012cb6e68c5c52b6d89d071a115bf1fb9ea2c15de64e03e889dd47d9d36a0e707f039de55029d33633a SHA512 aa50cdaf61ef0ae473c8139d8da2a4c374450f8d0d31e2260031e8086dab9201c303c86d50cd51427135bef500718cbc3a53baabf2bf505f8908c22a3d361c51
diff --git a/media-libs/jbig2enc/jbig2enc-0.29.ebuild b/media-libs/jbig2enc/jbig2enc-0.29.ebuild
new file mode 100644
index 000000000000..632ea5cccd30
--- /dev/null
+++ b/media-libs/jbig2enc/jbig2enc-0.29.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="JBIG2 Encoder and libs"
+HOMEPAGE="https://github.com/agl/jbig2enc"
+SRC_URI="https://github.com/agl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc-macos"
+IUSE="gif jpeg png tiff webp"
+
+RDEPEND="media-libs/leptonica[gif?,jpeg?,png?,tiff?,webp?]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ # remove -Werror
+ sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed'
+ # prevent static linking and QA notice about insecure RUNPATHs
+ # TODO: --disable-rpath (new in 0.29)?
+ sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed'
+
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -delete || die
+ find "${ED}" -name '*.a' -delete || die
+}