diff options
author | Viorel Munteanu <ceamac.paragon@gmail.com> | 2021-03-22 18:33:19 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-27 16:42:28 +0000 |
commit | ed46e83d672d110adada7533f90878ed9c25e195 (patch) | |
tree | 3c97dd1ce3ba28b59a1329c58a53a384e8db44fb /media-gfx/xpaint | |
parent | www-apps/radicale: bump to 3.0.6 (diff) | |
download | gentoo-ed46e83d672d110adada7533f90878ed9c25e195.tar.gz gentoo-ed46e83d672d110adada7533f90878ed9c25e195.tar.bz2 gentoo-ed46e83d672d110adada7533f90878ed9c25e195.zip |
media-gfx/xpaint: fix compilation with clang
Closes: https://bugs.gentoo.org/731010
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/xpaint')
-rw-r--r-- | media-gfx/xpaint/files/xpaint-2.10.2-libtool-clang.patch | 13 | ||||
-rw-r--r-- | media-gfx/xpaint/xpaint-2.10.2-r1.ebuild | 10 |
2 files changed, 20 insertions, 3 deletions
diff --git a/media-gfx/xpaint/files/xpaint-2.10.2-libtool-clang.patch b/media-gfx/xpaint/files/xpaint-2.10.2-libtool-clang.patch new file mode 100644 index 000000000000..d6a3dab07830 --- /dev/null +++ b/media-gfx/xpaint/files/xpaint-2.10.2-libtool-clang.patch @@ -0,0 +1,13 @@ +libtool doesn't work if compiling with clang. Need to add --tag=CC +See bug https://bugs.gentoo.org/731010 +--- a/xpaintrw/Makefile.am ++++ b/xpaintrw/Makefile.am +@@ -25,7 +25,7 @@ + + xpaint_DEFINES = $(ARCH_DEFINES) $(EXTRA_DEFINES) $(XAWLIB_DEFINES) + +-LIBTOOL = /usr/bin/libtool ++LIBTOOL = /usr/bin/libtool --tag=CC + AM_CFLAGS = @X_CFLAGS@ @SPECIAL_CFLAGS@ $(xpaint_DEFINES) + AM_YFLAGS = -d + CLEANFILES = diff --git a/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild b/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild index dc92f046b92f..86563f5c2aba 100644 --- a/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild +++ b/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild @@ -18,6 +18,7 @@ IUSE="pgf tiff" RDEPEND=" media-libs/fontconfig media-libs/freetype:2 + media-libs/libjpeg-turbo:= media-libs/libpng:0= x11-libs/libICE x11-libs/libX11 @@ -28,7 +29,6 @@ RDEPEND=" x11-libs/libXpm x11-libs/libXt sys-libs/zlib - media-libs/libjpeg-turbo:= pgf? ( media-libs/libpgf ) tiff? ( media-libs/jbigkit:0= @@ -39,9 +39,14 @@ DEPEND="${RDEPEND}" BDEPEND=" sys-devel/bison sys-devel/flex + sys-devel/libtool virtual/pkgconfig " +PATCHES=( + "${FILESDIR}"/${P}-libtool-clang.patch +) + src_prepare() { default sed -i -e 's/-O3 -s//g' util/Makefile || die @@ -78,6 +83,5 @@ src_install() { -C util install doicon icons/xpaint.svg make_desktop_entry "${PN}" - find "${D}" -name '*.la' -type f -delete || die - find "${D}" -name '*.a' -type f -delete || die + find "${D}" \( -name '*.la' -o -name '*.a' \) -type f -delete || die } |