diff options
author | 2022-08-27 08:54:45 -0400 | |
---|---|---|
committer | 2022-08-27 11:29:37 -0400 | |
commit | 2a48d4e4bce4431bd68ead902a4042e9877c9ff6 (patch) | |
tree | 4e9dab860a96a8bdcaf789c5dd3429547ab17e88 /media-gfx/xfig/xfig-3.2.8b.ebuild | |
parent | app-text/gv: Version bump to 3.7.4 (diff) | |
download | gentoo-2a48d4e4bce4431bd68ead902a4042e9877c9ff6.tar.gz gentoo-2a48d4e4bce4431bd68ead902a4042e9877c9ff6.tar.bz2 gentoo-2a48d4e4bce4431bd68ead902a4042e9877c9ff6.zip |
media-gfx/xfig: Version bump to 3.2.8b
* Bump to EAPI=8
* Move media-libs/netpbm from DEPEND/RDEPEND to optfeature
* Remove unneeded dependencies: x11-libs/libXaw, x11-libs/libXi
* Add needed dependencies: media-libs/tiff, x11-libs/libX11, x11-libs/libXpm
* Remove IUSE="jpeg" and IUSE="postscript", as they're always enabled
upstream now.
* Remove IUSE="nls" and add (+) to x11-libs/libXaw3d's unicode USE-dep
* Switch from virtual/jpeg to media-libs/libjpeg-turbo
* Add patch to build with -lflto
Bug: https://bugs.gentoo.org/807784
Closes: https://bugs.gentoo.org/761424
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'media-gfx/xfig/xfig-3.2.8b.ebuild')
-rw-r--r-- | media-gfx/xfig/xfig-3.2.8b.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/media-gfx/xfig/xfig-3.2.8b.ebuild b/media-gfx/xfig/xfig-3.2.8b.ebuild new file mode 100644 index 000000000000..e25f69b210d0 --- /dev/null +++ b/media-gfx/xfig/xfig-3.2.8b.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature xdg + +DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window" +HOMEPAGE="http://mcj.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/project/mcj/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" + +COMMON_DEPEND=" + app-text/ghostscript-gpl:= + >=media-gfx/transfig-3.2.5-r1 + media-libs/libjpeg-turbo:0= + media-libs/libpng:0= + media-libs/tiff + x11-libs/libX11 + x11-libs/libXaw3d[unicode(+)] + x11-libs/libXpm + x11-libs/libXt +" +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto +" +RDEPEND="${COMMON_DEPEND} + media-fonts/font-misc-misc + media-fonts/urw-fonts +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.6a-urwfonts.patch" + "${FILESDIR}/${PN}-3.2.6a-solaris.patch" + "${FILESDIR}/${PN}-3.2.8b-app-defaults.patch" + "${FILESDIR}/${PN}-3.2.8b-Fix-build-with-flto.patch" +) + +src_configure() { + local myeconfargs=( + --enable-i18n + --htmldir="${EPREFIX}/usr/share/doc/${PF}" # it expects docdir... + ) + econf "${myeconfargs[@]}" +} + +pkg_postinst() { + optfeature "GIF support" media-libs/netpbm virtual/imagemagick-tools +} |