diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-09-15 18:31:14 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-09-15 18:31:14 +0000 |
commit | f5d2c0c60790ebe686af3cebcd1741d9dd5aaa61 (patch) | |
tree | 85c0fc582895f89ae7806128b58f1145b4d6b1d2 /dev-lang | |
parent | dev-lang/tcl: Version BUmp, #522092 (diff) | |
download | historical-f5d2c0c60790ebe686af3cebcd1741d9dd5aaa61.tar.gz historical-f5d2c0c60790ebe686af3cebcd1741d9dd5aaa61.tar.bz2 historical-f5d2c0c60790ebe686af3cebcd1741d9dd5aaa61.zip |
dev-lang/tk: Version BUmp, #522092
Package-Manager: portage-2.2.12/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/tk/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/tk/Manifest | 38 | ||||
-rw-r--r-- | dev-lang/tk/tk-8.5.16.ebuild | 120 | ||||
-rw-r--r-- | dev-lang/tk/tk-8.6.2.ebuild | 130 |
4 files changed, 280 insertions, 17 deletions
diff --git a/dev-lang/tk/ChangeLog b/dev-lang/tk/ChangeLog index 12308934bf5a..3a1ea27f534f 100644 --- a/dev-lang/tk/ChangeLog +++ b/dev-lang/tk/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-lang/tk # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.206 2014/09/15 08:18:11 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/ChangeLog,v 1.207 2014/09/15 18:31:13 jlec Exp $ + +*tk-8.6.2 (15 Sep 2014) +*tk-8.5.16 (15 Sep 2014) + + 15 Sep 2014; Justin Lecher <jlec@gentoo.org> +tk-8.5.16.ebuild, + +tk-8.6.2.ebuild: + Version BUmp, #522092 15 Sep 2014; Agostino Sarubbo <ago@gentoo.org> tk-8.5.15.ebuild: Stable for sparc, wrt bug #512012 diff --git a/dev-lang/tk/Manifest b/dev-lang/tk/Manifest index 07f94ccf9b81..8c47578182b7 100644 --- a/dev-lang/tk/Manifest +++ b/dev-lang/tk/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX tcl-8.5.9-gentoo-fbsd.patch 475 SHA256 5f7c415260c124f7515b8621535ba277add91b584149283543a92f5f2613dc75 SHA512 4cab5fefca03337a9f74e0df330d055ff9ebb930a3a84ef84aa45399faf9685f4a7c5c9f86b1bc71dd8a13b7ed7b42ac4485081f358f5fd28892e6ff277a2a63 WHIRLPOOL 02454a19ac2c1a25306676306b4c13fb882463c577545b65a3e3aaf93f6b3e0eb5b91c6e2c86fae601c5a7b1dc2bf6ec99be75aa4b335a16008a55427cd27d4d AUX tk-8.4-lastevent.patch 1095 SHA256 73bdd40b9e04ad705ac8956ea96967aaee5ac8ee9588a43e5c1bf30d50c0996d SHA512 50b804357484e5fb90ad1d3560db107cde8b2b0ae0363c152276fa941a21c19705ccee0e26265264bcd06c0cafb1ed90f6f5b413ff0851d0658ac03250a8aaf6 WHIRLPOOL 2c5a87016a6e7e7bbcd3ef82a70c00c1a152c70fe4409bf4f7a5c17e8b920adddc7d63deb0ac1662dfa882435db3e222311512a3317023a4c96acb4ebbd0510f @@ -17,26 +17,32 @@ AUX tk-8.5_alpha6-tclm4-soname.patch 540 SHA256 6e6a6d9ae62040cc2f386c92854cb59e AUX tk-configure-LANG.patch 1686 SHA256 dc9386b88eac48c282d63d0be7e7be81d4a0a08035a8b97138a61133e057bcea SHA512 6b097d9406f0faf5d0332c48a72d5654063fe29e37ec2d3bc2f425e98f26d117d39769c43ae39ee731f094a47912bf1dd24259fcc4a5b5326b1e2c4313c89c56 WHIRLPOOL 40cf52a3a9c97012be36a6e11054c3c418c692cb9292350baefecee621ecbff12b65f7b0edcde86e14600aea4c43daf607806c374b650d3f82142870b0da4da2 DIST tk8.5.13-src.tar.gz 4086092 SHA256 9e83ba2704ad73a65986eb7cdc51e432a5db6eca8d8691e33caceef40ed0c563 SHA512 5b705026d3d80c35bd60311c3df5489a7970c1648f98d843d6ee57c9336de5e63aed488f670f15f2c0bffccbc2402cc98c383c057b7d86f1db4c36340e34e209 WHIRLPOOL e523bfa0ce407f4d5157df7fee93c6d60012bf5b46a4cbd4e4692ad0ce872650563d12db11bfa94ba19b0a5aad1ef9fdd4b02dfb11f0de253839c69adb26a718 DIST tk8.5.15-src.tar.gz 4086650 SHA256 815c6706d0b4fdd432fe16b82e7b9adfa1f057c44edd11d28f7c4b0ac104323f SHA512 9c8c42135b918f551e3e5ce479f2c8583749d34db5985a21e583c8f0aa2637eaa4ae0f47ce7b395f72ec929edd758c53326c96a23dac5f70a6f86eb63584dca5 WHIRLPOOL 6aca2bfab54155f573bfa9b07ce0767ff8f6da227e2845c03a81d964808e25b9a6483301692934a40ea2d9ddfc7d7193c2131ef775f84c9b164f35a6a0900008 +DIST tk8.5.16-src.tar.gz 4095839 SHA256 fbcbe74d665df7cb286d042552323a051c611c50683beb18fc6fb59ebe293993 SHA512 1a43921a0ea784b562be46f7761853df8f145557016bce477d3957673a4d174f1be2d68409c370bbb23ca9e591df8502170cbd39592e0cdb745e25a09b7ff4cc WHIRLPOOL 64a8f63800b7622aaa3e86954ad0a13c1ad9e2b105124e0fb17cbdad8623ca4ebc7df927a880bbf9c0e14ba76d27113b5cc5b7f06c682cc80a4e6dd3b32192da DIST tk8.6.1-src.tar.gz 4244010 SHA256 b691a2e84907392918665fe03a0deb913663a026bed2162185b4a9a14898162c SHA512 f05879924371bae7059ccf84b49b16748b3c2c1438ddcfbc4797a7552779947b0c733ada8c9abd739b3b00d16e9e76b407269213f87b6fc81bb29796581a8447 WHIRLPOOL 5d95b5ec0d9c778b445c60ac24b056306e7c32086cd073ecaef000327c9c5d6f639ce1c3762b3047192a3859249714f434a0e05ce9275624b1a3f6d5127c905c +DIST tk8.6.2-src.tar.gz 4246617 SHA256 afb6639043ec38905afe22b61ca54820217f4d4e81e0ad49f839c16d2bf98579 SHA512 bf07fb15972de9e04921a016c8e4a870526b217432b50e64b65365036a5aff2182178f5e3eb1f64dc27eb27b6bf2d5c57bd691307cda79290b2bc42ceca57017 WHIRLPOOL dc526dead634ac825fa1858d5f610332fca0b410234555cc76f473a8ce6144d1816b9e1b0ce0768a6ae38e70eee80670dd5a7c202eba9308d5e0cbfed067e26d EBUILD tk-8.5.13-r1.ebuild 3652 SHA256 a1ce6872e84379f287de37dc247d996c8599ec51d14440a85bb6a9b098cb8bde SHA512 60bf657400a6677a8c28ee38da6ef647ec5ffa9b6c7d281268e29563e62ba0d5b331709e53764450bf5bf4adb053ecec6184ff53c0b0549f9078802eb979ff9c WHIRLPOOL b534fb04ae39bca427f4deada2a2cc13dbb90e8d87c6e9330f5bdfefd93460470bc00e485cd0d669a48bd744063eaeb44d6c297de020f729736c56b980302324 EBUILD tk-8.5.15.ebuild 3691 SHA256 1da8fa62921caeed59688b104d20f7688d9e8b56ce7b1f1b9a170cf0c6a3ef56 SHA512 5634a18d2e3a3eea18a92ced56b9f5ca7363244eb7d99ea1e6aa94f83aa988cd61ce813885d85171a2a8f25532e6ff8e7f03437abc8c178ded678867bd590670 WHIRLPOOL 72b20e2898ca2d4fbdc17d16f7839efcd5df840e0a97e5b115453d995bd012c774c86d0a677fe03e8ab6c52f1fb1f48897154851b95749d1c30e8b7048ff1e8d +EBUILD tk-8.5.16.ebuild 3548 SHA256 466c011875590155832aea8eda86fc40b921cd0c6b78ebf841a6c16d1fed4e9f SHA512 78b3cdde11c2d1629ac6c12694fd3ab1ecf4d20488bf1097f346274e89edf6a68ebc1773967feaaf4ad315279e15909f7e340b78fe28c953bb23550c7e624d2e WHIRLPOOL c691b22b2c5c2163c1f18cd0d1cb7bfcd1c01c560025adf59fa40215f1fa2b3b8d3ad4fecdb05b01ce7cddd82c1ba72ebf58177675939298501769eb2ea21ac1 EBUILD tk-8.6.1.ebuild 3829 SHA256 171b8134eac7e672a1d08a563d6708e46bde4803b0e6688668f81ac0c1bb448a SHA512 b4748b02a114b155babb6ae7dcd992ea5686dc2d893662382b9fb6ac2e483ae9f4f21a57629ca47001a02b07b425ec6baf9b49f34c19f959df5c057933130f97 WHIRLPOOL 6cf3bcd288c601739d2eeeead866747bffe9dd0ea726aba062c0f842a1648ad5595a6d0b505a0e8f1784bd6a4a1d4068a2f9354f69956830d3ff58a00e0af37d -MISC ChangeLog 27227 SHA256 34c168452c881d8d779abf3903b2e1aa0d3c8207f85d0ea8b568814f111f0f84 SHA512 90b63f2ce8177bc3e98ea81d204560325c1581403b925acda9b5367cfae447e84432bcb5f29bb5157dd51f1966f3ba4fe4aa44c0272f26977e6d819827374a96 WHIRLPOOL bad73f621123030c5b4ee3c2e32153b629939f2d3a27d552d812c6d610f286c9fe2691353b2076b95ce0a60418338fa19ac8d473a2742546ba0e58326cd8c542 +EBUILD tk-8.6.2.ebuild 3677 SHA256 c29d7caedb688e529eea84cd89a478fe6f2ef7994b6cd0129eb77b0cb4788ee8 SHA512 ff5698893d083d79a0b17bb729ec01be8d0d1e11daee45532fc69419be26d8eec617213b6750da1aa86f6010ef0e82bbf7d636e903e92a27590f6961b63c8195 WHIRLPOOL 7bda1b13394f39e7793b694f1ab9ad360b8a96c9551bd92a1516eebeac446de866f2670c9154071e20de7e5fe8e653c9b7383a7984ed986bf5a3d798f5a1af43 +MISC ChangeLog 27389 SHA256 04c2ae783f92851bd1a124ad6703131e6c6adf3ab53a74a5ed0fe70079c0ba79 SHA512 f4f0af5d52c296342bc3d43a347fd6fa77cd2a6ca6cd17d54fbef57dbe1c4ac7780aedcb2d360af02074fe630a7bbc7deb829e526d3f58f638356070a7b28817 WHIRLPOOL d28e6c45d00d7a919bdc10b2e531a4e50ed992e912c523571df7ba45fd712ee17d0f3c84d11806164b3296555347c50e5660c9ee2c67e5749a2a60458ca5cf2a MISC metadata.xml 160 SHA256 225a6f78d287329cdf2f4ed57468be28bd6565fd9a62207c2cc48e25ac9d3537 SHA512 a50627bda9ed953daf422b5a2e89b5b64e296d1a023d767c8a4ebb2cd51cd0036cecce455762a54e7d669f94d17d9de21052bac94fc08b1365ef42eb2f267742 WHIRLPOOL 61fa22d50aaf2bdecc467e26c9675cf7949ad55a4a8821730c91d1bd73f83fc4c35660851961310efa450e337a7ef572a925e186b8b05984d6315efc509fd365 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2 +Version: GnuPG v2.0 -iQIcBAEBCAAGBQJUFqDEAAoJELp701BxlEWfwOMP/iv2mL1wT3FTkq5c6drkooKJ -vu48oLVe9j3AIXMUjRCjLvkW9d8iltaM+4vV7t/7FKuVdkIRd5LMpjfIkvxxP71F -vcFwZ3hAYLlGV/aXgYUH4nY4IHYq6h+c9RW77sQsz+dyhQu5O3FODfctKI5CyPk1 -K/ZR4oaH68NmzSv9AsLZjP2WHzAG4VVqggKagH2GuyXjN2DvUM11FuTv/JVlS1Ih -UWqo2cTG1rAUaEu96Vm1e4j/NXfC6qad5KMeSmzJ8FB1Q922D4F7yqCaWTHFVKkk -T/S/H0XTxeLdq0GYWeZBOcUGIoc14tUrUFX+yCJW1fiiqNhXu1hRK2BJWbuwWTa6 -mnjlgAx+5KpWLJDYDIogy/jyCQHkacZP5M1bYW+fyd/mvYyM7qADrGhjiEvTHDm9 -DZvJwHpl+j0uAKXWN3A5Khmd6UrUuvJyEv/eopugbuK1tJLvubrcYPGMzJuLfV6G -85XfPfqPEEhktLIzN3usHdXJNSMupQmHFUUIIMywpJQua11/xFTkBNYvDyyJDtqE -0Wqh6UnAubTysYiTPdVBCFvFkzrMP/v48qpiQlo2CjEu5AML8+qsBi2EO+Gm+6Ic -lSSCCbSZ2dbHvNzE7s2ti8iH1bdnrv/zdBS1SsuT+/3pKtJ2oO8v+Y/yIy2aqiZW -Zy+dhSP5pl1GyMM0tUxz -=mZiy +iQJ8BAEBCgBmBQJUFzBkXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyQ0JDQjFGMzBDQ0UxMjFGNENDNDgxMDdC +OUQ0RjIzMUJEMTU1OEFCAAoJELnU8jG9FVir8dYP/3Q3/5rWT2axUZLOXZT+d/v3 +kUi8wy7q10A6uAPJbXtgmp+fwGLrOaxY7nLUTNkDou+5PtAdObDi84CnFSRH2b9a +IpjJYtTzBHJF2KzKLGFajjqbAjeNCO6Ys6OhlnRIozvj6rQmr7YzJQ4eYrFjRw7F +PwrYaektUUd6dT8TvOcCEo3+gQdcDBMq/YsKf7lheV8fW7jWXjnNeC7LlZhAogHn +PSz5XmVzA9RPJc9nr9jJ8JMC9i/1+I55RLaS7/iJl1kbZMtO8iMmHV9miwyjXLbU +PxMDTTjYIRDsnbtN01shl2iPmc7eHMwI0w35oKOg2bc2h5QH8wiGnYwI04bBbpqy +PVvVNdo4lNVFP7FapwgBZppiG/rk4YWpN/hxW1HaAnViO1yxTES8OLS3z6Y3hqJ0 +URBh+6+dpKgYD22p3eEMltdbrlDe55N2VV1LKkBceQhhCxqkPM46zL+oT1xItTfM +4PXaXuUnDfncfkxrKGNujmUqBYsaodNsXitvHNzqLdRQxBDikqb2I6bFVdezgL3s +7zWrOPA/srajDA+W4xMpxqBvvSJplqnL6wX4J2PqaIhcg8ZFPqHI1zq7ECNQpgS+ +tOoZr/+rxtaN6SdGilNKKsj8inoeZ230M8sukrf35GSI8/cDfcwharC/3hEa2B/f +S1cXQruJJUG8H23+Kxb+ +=qufl -----END PGP SIGNATURE----- diff --git a/dev-lang/tk/tk-8.5.16.ebuild b/dev-lang/tk/tk-8.5.16.ebuild new file mode 100644 index 000000000000..fdf80c0f4627 --- /dev/null +++ b/dev-lang/tk/tk-8.5.16.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/tk-8.5.16.ebuild,v 1.1 2014/09/15 18:31:13 jlec Exp $ + +EAPI=5 + +inherit autotools eutils multilib prefix toolchain-funcs versionator virtualx + +MY_P="${PN}${PV/_beta/b}" + +DESCRIPTION="Tk Widget Set" +HOMEPAGE="http://www.tcl.tk/" +SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz" + +LICENSE="tcltk" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug threads truetype aqua xscreensaver" + +RDEPEND=" + !aqua? ( + media-libs/fontconfig + media-libs/freetype:2 + x11-libs/libX11 + x11-libs/libXt + truetype? ( x11-libs/libXft ) + xscreensaver? ( x11-libs/libXScrnSaver ) + ) + ~dev-lang/tcl-${PV}" +DEPEND="${RDEPEND} + !aqua? ( x11-proto/xproto )" + +SPARENT="${WORKDIR}/${MY_P}" +S="${SPARENT}"/unix + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-8.5.11-fedora-xft.patch \ + "${FILESDIR}"/${PN}-8.5.13-multilib.patch + + epatch "${FILESDIR}"/${PN}-8.4.15-aqua.patch + eprefixify Makefile.in + + # Bug 125971 + epatch "${FILESDIR}"/${PN}-8.5.14-conf.patch + + # Make sure we use the right pkg-config, and link against fontconfig + # (since the code base uses Fc* functions). + sed \ + -e 's/FT_New_Face/XftFontOpen/g' \ + -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \ + -e 's:xft freetype2:xft freetype2 fontconfig:' \ + -i configure.in || die + rm -f configure || die + + tc-export CC + + eautoconf +} + +src_configure() { + local mylibdir=$(get_libdir) + + econf \ + --with-tcl="${EPREFIX}/usr/${mylibdir}" \ + $(use_enable threads) \ + $(use_enable aqua) \ + $(use_enable truetype xft) \ + $(use_enable xscreensaver xss) \ + $(use_enable debug symbols) +} + +src_test() { + Xemake test +} + +src_install() { + #short version number + local v1=$(get_version_component_range 1-2) + local mylibdir=$(get_libdir) + + S= default + + # normalize $S path, bug #280766 (pkgcore) + local nS="$(cd "${S}"; pwd)" + + # fix the tkConfig.sh to eliminate refs to the build directory + # and drop unnecessary -L inclusion to default system libdir + + sed \ + -e "/^TK_BUILD_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \ + -e "/^TK_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ + -e "/^TK_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tk${v1}/include:g" \ + -e "/^TK_BUILD_STUB_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \ + -e "/^TK_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ + -e "/^TK_BUILD_STUB_LIB_PATH=/s:${SPARENT}.*unix:${EPREFIX}/usr/${mylibdir}:g" \ + -e "/^TK_LIB_FILE=/s:'libtk${v1}..TK_DBGX..so':\"libk${v1}\$\{TK_DBGX\}.so\":g" \ + -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die + if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then + sed \ + -e "/^TK_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \ + -e "/^TK_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \ + -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die + fi + + # install private headers + insinto /usr/${mylibdir}/tk${v1}/include/unix + doins "${S}"/*.h + insinto /usr/${mylibdir}/tk${v1}/include/generic + doins "${SPARENT}"/generic/*.h + rm -f "${ED}"/usr/${mylibdir}/tk${v1}/include/generic/{tk,tkDecls,tkPlatDecls}.h || die + + # install symlink for libraries + dosym libtk${v1}$(get_libname) /usr/${mylibdir}/libtk$(get_libname) + dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a + + dosym wish${v1} /usr/bin/wish + + dodoc "${SPARENT}"/{ChangeLog*,README,changes} +} diff --git a/dev-lang/tk/tk-8.6.2.ebuild b/dev-lang/tk/tk-8.6.2.ebuild new file mode 100644 index 000000000000..ee302aa2248a --- /dev/null +++ b/dev-lang/tk/tk-8.6.2.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/tk-8.6.2.ebuild,v 1.1 2014/09/15 18:31:13 jlec Exp $ + +EAPI=5 + +inherit autotools eutils multilib prefix toolchain-funcs versionator virtualx + +MY_P="${PN}${PV/_beta/b}" + +DESCRIPTION="Tk Widget Set" +HOMEPAGE="http://www.tcl.tk/" +SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz" + +LICENSE="tcltk" +SLOT="0/8.6" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug +threads truetype aqua xscreensaver" + +RDEPEND=" + !aqua? ( + media-libs/fontconfig + x11-libs/libX11 + x11-libs/libXt + truetype? ( x11-libs/libXft ) + xscreensaver? ( x11-libs/libXScrnSaver ) + ) + ~dev-lang/tcl-${PV}" +DEPEND="${RDEPEND} + !aqua? ( x11-proto/xproto )" + +# Not bumped to 8.6 +#RESTRICT=test + +SPARENT="${WORKDIR}/${MY_P}" +S="${SPARENT}"/unix + +src_prepare() { + find \ + "${SPARENT}"/compat/* \ + -delete || die + + epatch \ + "${FILESDIR}"/${PN}-8.5.11-fedora-xft.patch \ + "${FILESDIR}"/${PN}-8.5.13-multilib.patch + + epatch "${FILESDIR}"/${PN}-8.4.15-aqua.patch + eprefixify Makefile.in + + # Bug 125971 + epatch "${FILESDIR}"/${PN}-8.5.14-conf.patch + + # Make sure we use the right pkg-config, and link against fontconfig + # (since the code base uses Fc* functions). + sed \ + -e 's/FT_New_Face/XftFontOpen/g' \ + -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \ + -e 's:xft freetype2:xft freetype2 fontconfig:' \ + -i configure.in || die + rm -f configure || die + + tc-export CC + + sed \ + -e 's:-O[2s]\?::g' \ + -i tcl.m4 || die + + eautoconf +} + +src_configure() { + local mylibdir=$(get_libdir) + + econf \ + --with-tcl="${EPREFIX}/usr/${mylibdir}" \ + $(use_enable threads) \ + $(use_enable aqua) \ + $(use_enable truetype xft) \ + $(use_enable xscreensaver xss) \ + $(use_enable debug symbols) +} + +src_test() { + Xemake test +} + +src_install() { + #short version number + local v1=$(get_version_component_range 1-2) + local mylibdir=$(get_libdir) + + S= default + + # normalize $S path, bug #280766 (pkgcore) + local nS="$(cd "${S}"; pwd)" + + # fix the tkConfig.sh to eliminate refs to the build directory + # and drop unnecessary -L inclusion to default system libdir + + sed \ + -e "/^TK_BUILD_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \ + -e "/^TK_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ + -e "/^TK_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tk${v1}/include:g" \ + -e "/^TK_BUILD_STUB_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \ + -e "/^TK_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ + -e "/^TK_BUILD_STUB_LIB_PATH=/s:${SPARENT}.*unix:${EPREFIX}/usr/${mylibdir}:g" \ + -e "/^TK_LIB_FILE=/s:'libtk${v1}..TK_DBGX..so':\"libk${v1}\$\{TK_DBGX\}.so\":g" \ + -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die + if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then + sed \ + -e "/^TK_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \ + -e "/^TK_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \ + -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die + fi + + # install private headers + insinto /usr/${mylibdir}/tk${v1}/include/unix + doins "${S}"/*.h + insinto /usr/${mylibdir}/tk${v1}/include/generic + doins "${SPARENT}"/generic/*.h + rm -f "${ED}"/usr/${mylibdir}/tk${v1}/include/generic/{tk,tkDecls,tkPlatDecls}.h || die + + # install symlink for libraries + dosym libtk${v1}$(get_libname) /usr/${mylibdir}/libtk$(get_libname) + dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a + + dosym wish${v1} /usr/bin/wish + + dodoc "${SPARENT}"/{ChangeLog*,README,changes} +} |