summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2018-10-02 19:02:30 +0200
committerTupone Alfredo <tupone@gentoo.org>2018-10-02 19:02:30 +0200
commit380691910358a36cb69a08221b55caa89a1bffc5 (patch)
tree4c368b1e4ebc613d7bd54f6fb46c31e3f6d53e76 /dev-tcltk/tkimg/tkimg-1.4.7.ebuild
parentwww-servers/nginx: drop old (diff)
downloadgentoo-380691910358a36cb69a08221b55caa89a1bffc5.tar.gz
gentoo-380691910358a36cb69a08221b55caa89a1bffc5.tar.bz2
gentoo-380691910358a36cb69a08221b55caa89a1bffc5.zip
dev-tcltk/tkimg: Version bump to 1.4.7
Closes: https://bugs.gentoo.org/504968 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-tcltk/tkimg/tkimg-1.4.7.ebuild')
-rw-r--r--dev-tcltk/tkimg/tkimg-1.4.7.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/dev-tcltk/tkimg/tkimg-1.4.7.ebuild b/dev-tcltk/tkimg/tkimg-1.4.7.ebuild
new file mode 100644
index 00000000000..0798c06517d
--- /dev/null
+++ b/dev-tcltk/tkimg/tkimg-1.4.7.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils multilib prefix toolchain-funcs virtualx
+
+MYP=Img-Source-$PV
+
+DESCRIPTION="Adds a lot of image formats to Tcl/Tk"
+HOMEPAGE="http://tkimg.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/1.4/${PN}%20${PV}/${MYP}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test static-libs"
+
+RDEPEND="
+ dev-lang/tk:=
+ >=dev-tcltk/tcllib-1.11
+ media-libs/tiff:0=
+ >=media-libs/libpng-1.6:0=
+ >=sys-libs/zlib-1.2.7:=
+ x11-libs/libX11
+ virtual/jpeg:="
+DEPEND="${RDEPEND}
+ test? (
+ x11-apps/xhost
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )"
+
+# Fails tests
+RESTRICT="test"
+
+S="${WORKDIR}/${MYP}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tclconfig.patch
+ "${FILESDIR}"/${P}-jpeg.patch
+ "${FILESDIR}"/${P}-zlib.patch
+ "${FILESDIR}"/${P}-png.patch
+ "${FILESDIR}"/${P}-tiff.patch
+ "${FILESDIR}"/${P}-jpeg-9.patch
+)
+
+src_prepare() {
+ default
+ find . -name configure -delete
+ eautoreconf
+ for dir in zlib libpng libtiff libjpeg base bmp gif ico jpeg pcx pixmap png\
+ ppm ps sgi sun tga tiff window xbm xpm dted raw ; do
+ (cd $dir; eautoreconf)
+ done
+
+ find compat/{libjpeg,libpng,zlib,libtiff} -delete
+
+ eprefixify */*.h
+ tc-export AR
+}
+
+src_install() {
+ local l bl
+
+ emake \
+ DESTDIR="${D}" \
+ INSTALL_ROOT="${D}" \
+ install
+
+ if ! use static-libs; then
+ find "${ED}"/usr/$(get_libdir)/ -type f -name "*\.a" -delete || die
+ fi
+
+ # Make library links
+ for l in "${ED}"/usr/lib*/Img*/*tcl*.so; do
+ bl=$(basename $l)
+ dosym Img1.4/${bl} /usr/$(get_libdir)/${bl}
+ done
+
+ dodoc ChangeLog README Reorganization.Notes.txt changes ANNOUNCE
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins demo.tcl
+ insinto /usr/share/doc/${PF}/html
+ doins -r doc/*
+ fi
+}