summaryrefslogtreecommitdiff
path: root/media-gfx/transfig
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/transfig')
-rw-r--r--media-gfx/transfig/Manifest2
-rw-r--r--media-gfx/transfig/transfig-3.2.5e-r1.ebuild63
2 files changed, 37 insertions, 28 deletions
diff --git a/media-gfx/transfig/Manifest b/media-gfx/transfig/Manifest
index 1c3acf0b12ba..7560c08c9093 100644
--- a/media-gfx/transfig/Manifest
+++ b/media-gfx/transfig/Manifest
@@ -3,5 +3,5 @@ AUX transfig-3.2.5e-gcc10-fno-common.patch 939 BLAKE2B 70af7830470b5ed524d6b5df5
DIST fig2mpdf-1.1.2.tar.bz2 191438 BLAKE2B 411791fecf6e10aac92c004c7da69a10c97a6e12f811452f12d0b51b3a1eeff8fff97d831a5e64c9047855d27e6825a4e65f62be2536651e5876edd00cc822a9 SHA512 36dea40008371386b47a4451e2f311cc2540ab063e3b61e628a535775d62a8840c5cc20c37b80465184bf041c6e583aaf3e5156079e72211d0a87ff3346d2980
DIST transfig-3.2.5e-gentoo-patchset-r1.tar.bz2 21160 BLAKE2B 093020827fc0636f7549c3b325e4f148aa52407d8e288038dd02012875737523e83e0717662d04e463a01e8cfacfabffaaa4362b5bb1276c4f2052f6653fa26f SHA512 dbef1ca464929de45f3c706e76eb9f324ea9e692cc8c924893926e07ef7d4e0dbe597bcf465a9c7fc9fca22abe0acc6784ab09658a18aeff4ba44921b52b02ff
DIST transfig.3.2.5e.tar.gz 531256 BLAKE2B 830a97cb801b9cb284f7746a7f4a9645263cc34fd35d904288143d730331901302b12223ba135d8fa936f5ca0eeccacd194bbe2e74dfcfbf0cf4aede273ab507 SHA512 ed1379f1112514d90a4b3eecd3222baad311d804b5090e8e66867ec299e4f9a5f8d83ef8939aa6ecaa85a18143b8fb9b97f78e078ac5eeb934a158c55de6bb1e
-EBUILD transfig-3.2.5e-r1.ebuild 3358 BLAKE2B fd6d18e9000d426e58da37561484cbb2a5dc781364c917891e72ef6e900c770a51deb08fffed7fcc4b35990f772ab6b3566cf39df1ef92e096b32e763c9098f3 SHA512 bd6595d88cc5cde424117e4be140332118803020f6ca64b2e3c911d5c52800418cf72c3e5631a182817341a6671bb69377d1e14ab1bc40bf82a660537cfc0f7d
+EBUILD transfig-3.2.5e-r1.ebuild 3436 BLAKE2B 0e09a34f42b70c66dd94c9295250fcab9bae35bcec9869eae363a1b4aadd566e1171c55620027304ddeb8a637129a6695db80dde72641e1a17d0461a75d05316 SHA512 b8989f461feb24e3d31e721e561a3d28581b88ba107aac7db1fa5a15c77d94966786b080bd47af9c5325353906966e2b0bf32cb153531f0c1ce52041cc216995
MISC metadata.xml 238 BLAKE2B 60ff9cbe893ace8f33a3d44ee85a5c73c9bd5553478173bf92c4aa93398ae1140ba28673eb6c7373ac48ede6679546b57ea08b8e676ce5c7a47792a2ba8b3148 SHA512 65918555949ddfef068a9a197dffda69aee483ac55c1b52dcf19376aecf1cb53d8a3fc0931d4ebdbe64ba3341e2a2567d56c2830eb31e6746735449c53a1203c
diff --git a/media-gfx/transfig/transfig-3.2.5e-r1.ebuild b/media-gfx/transfig/transfig-3.2.5e-r1.ebuild
index 5c2d730704e1..39ce8231f7e8 100644
--- a/media-gfx/transfig/transfig-3.2.5e-r1.ebuild
+++ b/media-gfx/transfig/transfig-3.2.5e-r1.ebuild
@@ -2,29 +2,31 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit flag-o-matic toolchain-funcs
-MY_P=${PN}.${PV}
+inherit toolchain-funcs
-DESCRIPTION="A set of tools for creating TeX documents with graphics"
+MY_P="${PN}.${PV}"
+
+DESCRIPTION="Set of tools for creating TeX documents with graphics"
HOMEPAGE="https://www.xfig.org/"
SRC_URI="mirror://sourceforge/mcj/${MY_P}.tar.gz
mirror://gentoo/fig2mpdf-1.1.2.tar.bz2
https://dev.gentoo.org/~sultan/distfiles/media-gfx/transfig/${P}-gentoo-patchset-r1.tar.bz2"
+S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
-RDEPEND="x11-libs/libXpm
- virtual/jpeg
+RDEPEND="
media-libs/libpng
- x11-apps/rgb"
-DEPEND="${RDEPEND}
- x11-misc/imake
- app-text/rman"
-
-S=${WORKDIR}/${MY_P}
+ virtual/jpeg
+ x11-apps/rgb
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-text/rman
+ >=x11-misc/imake-1.0.8-r1"
PATCHES=(
"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5d-fig2mpdf-r1.patch"
@@ -61,11 +63,6 @@ sed_Imakefile() {
src_prepare() {
default
- # Create wrapper for gcc, bug #720820
- printf '#!/bin/sh\n%s ${*}\n' "$(tc-getCC)" > "${T}"/gcc
- chmod +x "${T}"/gcc
- export PATH="${T}:${PATH}"
-
find . -type f -exec chmod a-x '{}' \; || die
find . -name Makefile -delete || die
@@ -75,20 +72,32 @@ src_prepare() {
sed_Imakefile fig2dev/Imakefile fig2dev/dev/Imakefile
}
-src_compile() {
- xmkmf || die "xmkmf failed"
- emake Makefiles
+src_configure() {
+ export IMAKECPP=${IMAKECPP:-$(tc-getCPP)}
+ CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" xmkmf || die
+}
- emake CC="$(tc-getCC)" AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \
- LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+src_compile() {
+ emake CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" Makefiles
+
+ local myemakeargs=(
+ CC="$(tc-getCC)"
+ AR="$(tc-getAR) cq"
+ RANLIB="$(tc-getRANLIB)"
+ CDEBUGFLAGS="${CFLAGS}"
+ LOCAL_LDFLAGS="${LDFLAGS}"
USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ )
+ emake "${myemakeargs[@]}"
}
src_install() {
- emake DESTDIR="${D}" \
- INSTDATFLAGS="-m 644" \
- INSTMANFLAGS="-m 644" \
- install install.man
+ local myemakeargs=(
+ DESTDIR="${D}"
+ INSTDATFLAGS="-m 644"
+ INSTMANFLAGS="-m 644"
+ )
+ emake "${myemakeargs[@]}" install install.man
dobin "${WORKDIR}/fig2mpdf/fig2mpdf"
doman "${WORKDIR}/fig2mpdf/fig2mpdf.1"
@@ -100,7 +109,7 @@ src_install() {
einstalldocs
- rm -f "${ED}/usr/share/doc/${PF}/html/"{Makefile,*.lfig,*.pdf,*.tex} || die
+ rm "${ED}/usr/share/doc/${PF}/html/"{Makefile,*.lfig,*.pdf,*.tex} || die
mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
}