Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sam2p/, media-gfx/sam2p/files/
Date: Sun, 04 Oct 2020 17:09:35
Message-Id: 1601831353.173810552f074b83f9d0bdee1e50e5691904b9d9.soap@gentoo
1 commit: 173810552f074b83f9d0bdee1e50e5691904b9d9
2 Author: John Helmert III <jchelmert3 <AT> posteo <DOT> net>
3 AuthorDate: Sun Oct 4 17:09:13 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 17:09:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17381055
7
8 media-gfx/sam2p: Security bump
9
10 Bug: https://bugs.gentoo.org/631636
11 Bug: https://bugs.gentoo.org/636876
12 Bug: https://bugs.gentoo.org/649750
13 Package-Manager: Portage-2.3.101, Repoman-2.3.22
14 Signed-off-by: John Helmert III <jchelmert3 <AT> posteo.net>
15 Closes: https://github.com/gentoo/gentoo/pull/16286
16 Signed-off-by: David Seifert <soap <AT> gentoo.org>
17
18 media-gfx/sam2p/Manifest | 1 +
19 media-gfx/sam2p/files/sam2p-configure-strip.patch | 30 +++++++++++
20 media-gfx/sam2p/sam2p-0.49.4_p20190718.ebuild | 62 +++++++++++++++++++++++
21 3 files changed, 93 insertions(+)
22
23 diff --git a/media-gfx/sam2p/Manifest b/media-gfx/sam2p/Manifest
24 index b141a11da73..d8df300a1fd 100644
25 --- a/media-gfx/sam2p/Manifest
26 +++ b/media-gfx/sam2p/Manifest
27 @@ -1 +1,2 @@
28 DIST sam2p-0.49.3.tar.gz 2184864 BLAKE2B 47d3ce6384c344f66e564ea9f70e89e311540c1bbaf640a70cec2830347b3767aa79d525d25c12cfc2aecc61aca676239b99b345fc7e6bb2edfac7c60bd8d674 SHA512 9e9c91a2cd692e49bf73e7c197a0fcbe7df96c685636d1d00456eb8b4b847de3f4848d9bb3d9246340c479c62900ddd4e0a248257aa5e6ec6e16683c5dad54f8
29 +DIST sam2p-0.49.4_p20190718.tar.gz 1816309 BLAKE2B 3d97e00c2bd6b6c292c051d4eb6b73549d1c82a5bd7be3d6b718d8e9d2e96b47657c184af43fa57c0ca4b2b8c26904fb42508d17f7dda715def7d2082affa8b6 SHA512 1c6074fabca6146e51fe0d5a10c912ec679cf122e10aab7bead9e35e3d007e79773aedb1f627572b1b88cacefe0e7edf72efd71d32c47731723b910667220c51
30
31 diff --git a/media-gfx/sam2p/files/sam2p-configure-strip.patch b/media-gfx/sam2p/files/sam2p-configure-strip.patch
32 new file mode 100644
33 index 00000000000..be78fad0f73
34 --- /dev/null
35 +++ b/media-gfx/sam2p/files/sam2p-configure-strip.patch
36 @@ -0,0 +1,30 @@
37 +diff --git a/Makefile b/Makefile
38 +index 1433167..b662e33 100644
39 +--- a/Makefile
40 ++++ b/Makefile
41 +@@ -28,12 +28,13 @@ ifeq ($(MAKECMDGOALS),Makedep.force)
42 + MAKE_DIST=000
43 + endif
44 +
45 ++GCC_STRIP ?= -s
46 + BASH=bash
47 + PERL_BADLANG=x
48 + export PERL_BADLANG
49 +
50 + CXXX=$(CXD_assert)
51 +-LDALL=$(LDXX) -s $(LDFLAGS) $(LIBS)
52 ++LDALL=$(LDXX) $(GCC_STRIP) $(LDFLAGS) $(LIBS)
53 + ifeq ($(ENABLE_DEBUG), no)
54 + CXXX=$(CXD_no)
55 + endif
56 +@@ -101,8 +102,8 @@ IDE_MODES := release debug
57 + IDE_TARGETS_debug := $(patsubst %,%.yes, $(TARGETS))
58 + IDE_TARGETS_release := $(TARGETS)
59 +
60 +-CXD_assert =$(CXX) -s -O2
61 +-CXD_no =$(CXX) -s -DNDEBUG -O3
62 ++CXD_assert =$(CXX) $(GCC_STRIP) $(CXXFLAGS)
63 ++CXD_no =$(CXX) $(GCC_STRIP) $(CXXFLAGS)
64 + # CXD_yes =$(CXX) $(GFLAG) -lefence
65 + CXD_yes =$(CXX) $(GFLAG)
66 + CXD_checker=checkerg++ $(GFLAG)
67
68 diff --git a/media-gfx/sam2p/sam2p-0.49.4_p20190718.ebuild b/media-gfx/sam2p/sam2p-0.49.4_p20190718.ebuild
69 new file mode 100644
70 index 00000000000..2460983318f
71 --- /dev/null
72 +++ b/media-gfx/sam2p/sam2p-0.49.4_p20190718.ebuild
73 @@ -0,0 +1,62 @@
74 +# Copyright 1999-2020 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=7
78 +
79 +inherit autotools toolchain-funcs
80 +
81 +COMMIT="b953f63307c4a83fa4615a4863e3fb250205cd98"
82 +
83 +DESCRIPTION="Utility to convert raster images to EPS, PDF and many others"
84 +HOMEPAGE="https://github.com/pts/sam2p"
85 +SRC_URI="https://github.com/pts/sam2p/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
86 +
87 +LICENSE="GPL-2"
88 +SLOT="0"
89 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos"
90 +IUSE="examples gif"
91 +RESTRICT="test"
92 +
93 +BDEPEND="dev-lang/perl"
94 +
95 +S="${WORKDIR}/${PN}-${COMMIT}"
96 +
97 +PATCHES=( "${FILESDIR}"/${PN}-configure-strip.patch )
98 +
99 +src_prepare() {
100 + default
101 +
102 + # configure.in files are deprecated
103 + mv configure.{in,ac} || die
104 +
105 + # upstream thinks they're being helpful by running configure with `make`
106 + sed -i '/Makedep/s/ .\/configure.*//' Makefile || die
107 +
108 + # eautoreconf is still needed or you get bad warnings
109 + eautoreconf
110 +}
111 +
112 +src_configure() {
113 + tc-export CXX
114 +
115 + econf \
116 + --enable-lzw \
117 + $(use_enable gif)
118 +}
119 +
120 +src_compile() {
121 + emake GCC_STRIP=
122 +}
123 +
124 +src_install() {
125 + dobin sam2p
126 + einstalldocs
127 +
128 + if use examples; then
129 + # clear pre-compressed files
130 + rm examples/*.gz || die
131 +
132 + dodoc -r examples
133 + docompress -x /usr/share/doc/${PF}/examples
134 + fi
135 +}