From f799a00525182088ea3f6479dab5fe2ab6a869a4 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 18 Apr 2023 05:38:17 +0100 Subject: media-libs/libwmf: add unstaged fixups Signed-off-by: Sam James --- media-libs/libwmf/libwmf-0.2.13-r1.ebuild | 93 +++++++++++++++++++++++++++++++ media-libs/libwmf/libwmf-0.2.13.ebuild | 90 ------------------------------ 2 files changed, 93 insertions(+), 90 deletions(-) create mode 100644 media-libs/libwmf/libwmf-0.2.13-r1.ebuild delete mode 100644 media-libs/libwmf/libwmf-0.2.13.ebuild (limited to 'media-libs/libwmf') diff --git a/media-libs/libwmf/libwmf-0.2.13-r1.ebuild b/media-libs/libwmf/libwmf-0.2.13-r1.ebuild new file mode 100644 index 000000000000..5c0afaef42ab --- /dev/null +++ b/media-libs/libwmf/libwmf-0.2.13-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools gnome2-utils + +DESCRIPTION="A library for reading vector images in Microsoft's Windows Metafile Format (WMF)" +HOMEPAGE="https://github.com/caolanm/libwmf http://wvware.sourceforge.net/" +SRC_URI="https://github.com/caolanm/libwmf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="debug doc expat X" + +RDEPEND=" + app-text/ghostscript-gpl + media-fonts/urw-fonts + media-libs/freetype:2= + media-libs/libpng:= + media-libs/libjpeg-turbo + sys-libs/zlib:= + x11-libs/gdk-pixbuf:2 + expat? ( dev-libs/expat ) + !expat? ( dev-libs/libxml2:2= ) + X? ( + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXpm + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( AUTHORS BUILDING ChangeLog CREDITS INSTALL NEWS README TODO ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.8.4-build.patch + "${FILESDIR}"/${PN}-0.2.8.4-libpng-1.5.patch + "${FILESDIR}"/${PN}-0.2.8.4-pngfix.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + # Support for GD is disabled, since it's never linked, even, when enabled + # See https://bugs.gentoo.org/268161 + local myeconfargs=( + --disable-gd + --disable-static + $(use_enable debug) + $(use_with expat) + $(use_with !expat libxml2) + $(use_with X x) + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} + --with-fontdir="${EPREFIX}"/usr/share/fonts/urw-fonts + --with-freetype + --with-gsfontdir="${EPREFIX}"/usr/share/fonts/urw-fonts + --with-gsfontmap="${EPREFIX}"/usr/share/ghostscript/9.21/Resource/Init/Fontmap + --with-jpeg + --with-layers + --with-png + --with-sys-gd + --with-zlib + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + # address parallel build issue, bug 677566 + MAKEOPTS=-j1 + + default + find "${D}" -name '*.la' -delete || die +} + +pkg_preinst() { + gnome2_gdk_pixbuf_savelist +} + +pkg_postinst() { + gnome2_gdk_pixbuf_update +} + +pkg_postrm() { + gnome2_gdk_pixbuf_update +} diff --git a/media-libs/libwmf/libwmf-0.2.13.ebuild b/media-libs/libwmf/libwmf-0.2.13.ebuild deleted file mode 100644 index 46d011d65fc0..000000000000 --- a/media-libs/libwmf/libwmf-0.2.13.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools gnome2-utils - -DESCRIPTION="A library for reading vector images in Microsoft's Windows Metafile Format (WMF)" -HOMEPAGE="https://github.com/caolanm/libwmf http://wvware.sourceforge.net/" -SRC_URI="https://github.com/caolanm/libwmf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -LICENSE="LGPL-2" -SLOT="0" -IUSE="debug doc expat X" - -RDEPEND="app-text/ghostscript-gpl - media-fonts/urw-fonts - media-libs/freetype:2= - media-libs/libpng:0= - sys-libs/zlib:= - x11-libs/gdk-pixbuf:2 - virtual/jpeg:0= - expat? ( dev-libs/expat ) - !expat? ( dev-libs/libxml2:2= ) - X? ( x11-libs/libX11 - x11-libs/libXt - x11-libs/libXpm )" - -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -DOCS=( "AUTHORS" "BUILDING" "ChangeLog" "CREDITS" "INSTALL" "NEWS" "README" "TODO" ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.2.8.4-build.patch - "${FILESDIR}"/${PN}-0.2.8.4-libpng-1.5.patch - "${FILESDIR}"/${PN}-0.2.8.4-pngfix.patch -) - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - # Support for GD is disabled, since it's never linked, even, when enabled - # See https://bugs.gentoo.org/268161 - local myeconfargs=( - --disable-gd - --disable-static - $(use_enable debug) - $(use_with expat) - $(use_with !expat libxml2) - $(use_with X x) - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} - --with-fontdir="${EPREFIX}"/usr/share/fonts/urw-fonts - --with-freetype - --with-gsfontdir="${EPREFIX}"/usr/share/fonts/urw-fonts - --with-gsfontmap="${EPREFIX}"/usr/share/ghostscript/9.21/Resource/Init/Fontmap - --with-jpeg - --with-layers - --with-png - --with-sys-gd - --with-zlib - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - # address parallel build issue, bug 677566 - MAKEOPTS=-j1 - - default - find "${D}" -name '*.la' -delete || die -} - -pkg_preinst() { - gnome2_gdk_pixbuf_savelist -} - -pkg_postinst() { - gnome2_gdk_pixbuf_update -} - -pkg_postrm() { - gnome2_gdk_pixbuf_update -} -- cgit v1.2.3-65-gdbad