summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2013-04-18 06:09:46 +0000
committerPatrick Lauer <patrick@gentoo.org>2013-04-18 06:09:46 +0000
commitaf4fa4b2148cf91b21b7431f80f9167ed5cd2b20 (patch)
tree03072312725ef962a4add1112c6203be703771e5 /sci-libs
parentCleanup. (diff)
downloadhistorical-af4fa4b2148cf91b21b7431f80f9167ed5cd2b20.tar.gz
historical-af4fa4b2148cf91b21b7431f80f9167ed5cd2b20.tar.bz2
historical-af4fa4b2148cf91b21b7431f80f9167ed5cd2b20.zip
Fix sanbox violation #464144
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/plplot/ChangeLog7
-rw-r--r--sci-libs/plplot/Manifest25
-rw-r--r--sci-libs/plplot/plplot-5.9.9-r2.ebuild192
3 files changed, 200 insertions, 24 deletions
diff --git a/sci-libs/plplot/ChangeLog b/sci-libs/plplot/ChangeLog
index cb39f01d1a5c..bab1eee87ae5 100644
--- a/sci-libs/plplot/ChangeLog
+++ b/sci-libs/plplot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/plplot
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.48 2013/03/02 23:23:47 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.49 2013/04/18 06:09:30 patrick Exp $
+
+*plplot-5.9.9-r2 (18 Apr 2013)
+
+ 18 Apr 2013; Patrick Lauer <patrick@gentoo.org> +plplot-5.9.9-r2.ebuild:
+ Fix sanbox violation #464144
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> plplot-5.9.9-r1.ebuild:
Move Qt dependencies to the new category
diff --git a/sci-libs/plplot/Manifest b/sci-libs/plplot/Manifest
index f5e848073f7a..dbcb95d767a5 100644
--- a/sci-libs/plplot/Manifest
+++ b/sci-libs/plplot/Manifest
@@ -1,30 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX plplot-5.9.6-python.patch 379 SHA256 a338e7b7d9893aabf0bc2e4bc5bd25a97b81674abfa40492b6cc8a33fe8763c8 SHA512 cb2022bda3d5408ef0b2dc280981ad8bdb2f7ecb20d827f7e71ce063fba60963e68aeaa5efd8eef87da8e3dc270b609f7cb342c1da175cd757c9f135173842e4 WHIRLPOOL a6ae20047cd0e99251746cadf703e19d35897a6788e5b5d665758f970cc47aad31331640a679f974455aeab4ab6ec4927649d4b1c1a9d9efbe474f2e966aed83
AUX plplot-5.9.9-CMakeLists.txt.patch 524 SHA256 f2a28ccca6934f85e496bf5c54d192bf436f544b379640498e2077fd882ce647 SHA512 daa8788ca5d55539c146c17318b2f402e360a8f34ce930999b7078e474099535dc8a335f88c520ec756d8e9f2249e2c93a4d65e5822f7224ec400c854f1168cc WHIRLPOOL 02e09ed162aab24f3358f8a3248fae66bac8c60db29180adacc7869ce5a1ae11db44430da9101327bd487a49480ea84647ce2883bfbc954f460e801be89c3aba
AUX plplot-5.9.9-no-pdftest.patch 458 SHA256 ee9d6b0cfdf4e954e24c5c026723334105ee208d9bb92e623bc42fdbd272caad SHA512 4c41b4321cdf4040cf64fba44b5c93032011737c1dbd98a9fa8c8d5b2b0c182cc94b30a3c52d2c1c184ce678e22b2c35a2d4f0e5ddbd93a86396e2c615cb50fe WHIRLPOOL aa6aaaffd9098abde89927a9c1079f351a7810e9c7b41fb61bc72f75225c5f5c3ff636b575444cdab4a22bd6bc24ea110d6bb29dbc684e9984c20cab37c709fd
AUX plplot-5.9.9-tk86.patch 21286 SHA256 9d6c908e7bb36df4e805bf2b95c773b88fb4dfa2542db63157bd994e83a22b35 SHA512 0b60a42a014b35a5b85af830f0dfc200a1156e53fa79ddb230f93080ab9cb19589008456affb6e670e388679a5ee68b981c04ce2a232cfcb7f27fd2ce457b51f WHIRLPOOL a8086c4ffd07ac98b51edc8f8fcdf7bf4de3755d25101464493129aaf4979d2c6247eb3f0afcd9bb57f774760f2e0ea1cb48f91d02d36dc630bf8ebfb0f2e104
DIST plplot-5.9.9.tar.gz 13778554 SHA256 747e5a043681f3e20df30d159f6e8517cb1e25e502322adcd80e8ca53ec2c90d SHA512 ad46d40fbfecdf9b8d9e6f1e9da986716b07f88a91ad78f14498bd83acb0186c984b6b5079564046cfedfd1010692d0e7d3c3ce8831b3d1c825c8db335d4c7f1 WHIRLPOOL 3da257b0d0db87f46fd950e32d7bf22ef25b27d7334113fc2b0e5219fdb1d3462a425ff02550ee907fd105041d35f30b22b2b1b39649a13568d3f04f51525664
EBUILD plplot-5.9.9-r1.ebuild 5944 SHA256 7f47557aa53823b2cc2bbab2d9d7c205f3d3cf3c9f820afb5d5c59786e807e14 SHA512 e7b2a877941837b95ea96cea3053577aa252071426cf00fcae098fa5f0cfbbc5c5a7ba2662fc58a39f78d8e73c0b129a2521a6ec34edbb2dc683e9d806acda66 WHIRLPOOL 85ee7e189bff2d637e29c1b28127af703e4dfbf72db6e6ce5577e2555f68235941805f80dee3348935ffbb6fb6c095ad2a4dc567770ed1548d2cce17c51ce973
-MISC ChangeLog 8624 SHA256 b06ef53d23c826202f9227077819c03d12f29b246f89249ff42fd75bb0768895 SHA512 41f1e596628d0df80d94a2337d3edadcf0ba096e9762c99c0f15e27ae0d7c96a8b19adaae747ceaa4cbf12ad9f308afa8fd46c702f18781ff22d2f3b1af848cf WHIRLPOOL 222bc095763ad78f90b6a0f98a2aab23a39804fa5025bcfe9d7b256491c4bf191dc6c5d16a080d2b0e5c12a0f52bbab8a6da02e447edb94a8eda6c75a57193c6
+EBUILD plplot-5.9.9-r2.ebuild 5959 SHA256 f62f54b16283b5bb5c06e514b9f2725a23f6a1f28f95be319859f3449c8c19a7 SHA512 090fe2769d0a8171eb599bfb59166d486ee3c2b153c005ce1bfb9d5eae21fea494684f9d61f0d2fd52701be9ffd42c3fb00d2e0ebf9c60832fdb666923ff3ea7 WHIRLPOOL 94e11c2c1388f42167d10359150b1c41de6f4e0153b8a5bc828e7106e8c1ecd2fb64a8b0ae76443bf470a0f07581cd75293ae17d19ab1d50c05a5478d2b4b2ab
+MISC ChangeLog 8762 SHA256 f7aff18dd3ffa47e690e9a49b1ccbf702f6ab31142f2658d3dfe01ce4665bc2d SHA512 d138f7cb578e8bdc9e608bd0ebcb79071a3648a4c07f5a2bed202628c8e24e70c03c8d54e796ac2b9a6a7abc54530f4a06246e96bf3518a2e3148a52be285a47 WHIRLPOOL a4265744372bf39a8c401a5e13759ad74f6d7b84f3e719fd8328fa454b33ce9be1c09470e56fe31045e8a07a74a4f01a218079eedbbff5128f65e2398d4e8d05
MISC metadata.xml 1279 SHA256 c65b0cb27de9ac13092c5eb8be177aeb02f4ef21ae88ae6dab98b055d2b53845 SHA512 0bed3295c866c9ec9e0927be13cd9204df06d8c59a21a3ad300c5067be25c14733d6d1fa313470edd4d759cfa25ae402668fa4c78236be237f72d4195c151c3d WHIRLPOOL 37a0ba2bba2d92a52d6efe4b41615e05e1f2b034c1a910f31313c5645412c38369898e48f525aa66743569c523a357016d450ed92fffaa06d6c34f4f87072f53
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQJ8BAEBCABmBQJRMooBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
-OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88lJcP/jx2Tgij2aeweOELF6pWRGKa
-2VMI4u4YTO/r+DAUmodx+DkD+2qwlUVzJ6eSthA1hSV9X8dsMfze7dsx9oMGtJKH
-UEkEprLmwTpwh7oEDsgc4EsgEZwOT30Uuxwo+uP2QSFvVN5WYYZ9Ct5E4JqIQ9FI
-JaG6U61xdrwZXogubUBBMwJeey0xyXS+C0OG2vLuXTAPvbeZLPeSmGn00eVUdfZR
-XXgbLv7FU1nbSav/V65Q4dPykFDbpwT23DX6q09ovyFp9mDEB1YNpbH01ANAvRYx
-XpdmEKpbInDeTjp5Q8db0iX2XttW3GAr1uWc+U89tFWBk+Z4/SsFAJ6QMunH6D3+
-TX7UTG2eIgmLtfJjRtlKqv+rTMyOZA3KbCfGJ4KN6qCGP8qP3/EdaQDKdAGfqRcr
-qvTbVGD5L95e8wkO5BrpX4sfyixm31rI+WXOfzQleGq9ckt4JwF0wouQyN84IU95
-lMw3XMwh+cIoBUxLpg0fXS8ftx6l8eyexi6dcoI9gnmXHVN9/KzDhR3wz0MpCcQB
-vHXiw9YmcGgEdAvWT2z6JU/kFg2x6BEW4oqCsmEBMkpzg711fDzmK8LR/knpVOy0
-mOli3kQkrVDRCJCf6/SHgCS1ikI63n/x3su4Am4MnwzGNK0X6Q2vB7IMdMR4/z9c
-u7wL2mfgDWsvJ05401NQ
-=UL/X
------END PGP SIGNATURE-----
diff --git a/sci-libs/plplot/plplot-5.9.9-r2.ebuild b/sci-libs/plplot/plplot-5.9.9-r2.ebuild
new file mode 100644
index 000000000000..93cdbe3c970c
--- /dev/null
+++ b/sci-libs/plplot/plplot-5.9.9-r2.ebuild
@@ -0,0 +1,192 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.9-r2.ebuild,v 1.1 2013/04/18 06:09:30 patrick Exp $
+
+EAPI=4
+
+WX_GTK_VER="2.8"
+PYTHON_DEPEND="python? 2"
+FORTRAN_NEEDED=fortran
+
+inherit eutils fortran-2 cmake-utils python toolchain-funcs virtualx \
+ wxwidgets java-pkg-opt-2 multilib
+
+DESCRIPTION="Multi-language scientific plotting library"
+HOMEPAGE="http://plplot.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="ada cairo cxx doc dynamic examples fortran gd java jpeg latex lua
+ ocaml octave pdf perl png python qhull qt4 svg tcl test threads tk
+ truetype wxwidgets X"
+
+RDEPEND="
+ ada? ( virtual/gnat )
+ cairo? ( x11-libs/cairo[svg?,X?] )
+ java? ( >=virtual/jre-1.5 )
+ gd? ( media-libs/gd[jpeg?,png?] )
+ latex? ( virtual/latex-base app-text/ghostscript-gpl )
+ lua? ( dev-lang/lua )
+ ocaml? (
+ dev-lang/ocaml
+ dev-ml/camlidl
+ cairo? ( dev-ml/cairo-ocaml[gtk] ) )
+ octave? ( sci-mathematics/octave )
+ pdf? ( media-libs/libharu )
+ perl? ( dev-perl/PDL dev-perl/XML-DOM )
+ python? (
+ dev-python/numpy
+ qt4? ( dev-python/PyQt4 ) )
+ qhull? ( media-libs/qhull )
+ qt4? (
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4 )
+ tcl? ( dev-lang/tcl dev-tcltk/itcl
+ tk? ( dev-lang/tk dev-tcltk/itk ) )
+ truetype? (
+ media-fonts/freefont
+ media-libs/lasi
+ gd? ( media-libs/gd[truetype] ) )
+ wxwidgets? ( x11-libs/wxGTK:2.8[X] x11-libs/agg[truetype?] )
+ X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ java? ( >=virtual/jdk-1.5 dev-lang/swig )
+ ocaml? ( dev-ml/findlib )
+ python? ( dev-lang/swig )
+ test? ( media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc )"
+REQUIRED_USE="test? ( latex )"
+
+pkg_setup() {
+ use wxwidgets && wxwidgets_pkg_setup
+ use python && python_set_active_version 2
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-tk86.patch
+ # path for python independent of python version
+ epatch "${FILESDIR}"/${PN}-5.9.6-python.patch
+ # test with pdf assumes a modified bundled libharu
+ epatch "${FILESDIR}"/${PN}-5.9.9-no-pdftest.patch
+ # gentoo bug #419743 fixed upstream
+ epatch "${FILESDIR}"/${PN}-5.9.9-CMakeLists.txt.patch
+
+ # avoid installing license
+ sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die
+
+ # change default install directories for doc and examples
+ sed -i \
+ -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \
+ $(find "${S}" -name CMakeLists.txt) || die
+ sed -i \
+ -e 's:${VERSION}::g' \
+ -e "s:doc/\${PACKAGE}:doc/${PF}:" \
+ cmake/modules/instdirs.cmake || die
+ java-utils-2_src_prepare
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DDEFAULT_ALL_DEVICES=ON
+ -DTEST_DYNDRIVERS=OFF
+ -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ -DENABLE_d=OFF
+ $(cmake-utils_use_build test)
+ $(cmake-utils_use_has python numpy)
+ $(cmake-utils_use_with truetype FREETYPE)
+ $(cmake-utils_use_enable ada)
+ $(cmake-utils_use_enable cxx)
+ $(cmake-utils_use_enable dynamic DYNDRIVERS)
+ $(cmake-utils_use_enable fortran f77)
+ $(cmake-utils_use_enable java)
+ $(cmake-utils_use_enable lua)
+ $(cmake-utils_use_enable ocaml)
+ $(cmake-utils_use_enable octave)
+ $(cmake-utils_use_enable perl pdl)
+ $(cmake-utils_use_enable python)
+ $(cmake-utils_use_enable qt4 qt)
+ $(cmake-utils_use_enable tcl)
+ $(cmake-utils_use_enable tcl itcl)
+ $(cmake-utils_use_enable tk)
+ $(cmake-utils_use_enable tk itk)
+ $(cmake-utils_use_enable wxwidgets)
+ $(cmake-utils_use threads PL_HAVE_PTHREAD)
+ $(cmake-utils_use qhull PL_HAVE_QHULL)
+ $(cmake-utils_use qt4 PLD_aqt)
+ $(cmake-utils_use qt4 PLD_bmpqt)
+ $(cmake-utils_use qt4 PLD_epsqt)
+ $(cmake-utils_use qt4 PLD_extqt)
+ $(cmake-utils_use qt4 PLD_jpgqt)
+ $(cmake-utils_use qt4 PLD_memqt)
+ $(cmake-utils_use qt4 PLD_pdfqt)
+ $(cmake-utils_use qt4 PLD_pngqt)
+ $(cmake-utils_use qt4 PLD_ppmqt)
+ $(cmake-utils_use qt4 PLD_svgqt)
+ $(cmake-utils_use qt4 PLD_qtwidget)
+ $(cmake-utils_use qt4 PLD_tiffqt)
+ $(cmake-utils_use cairo PLD_extcairo)
+ $(cmake-utils_use cairo PLD_memcairo)
+ $(cmake-utils_use cairo PLD_pdfcairo)
+ $(cmake-utils_use cairo PLD_pngcairo)
+ $(cmake-utils_use cairo PLD_pscairo)
+ $(cmake-utils_use cairo PLD_svgcairo)
+ $(cmake-utils_use cairo PLD_wincairo)
+ $(cmake-utils_use cairo PLD_xcairo)
+ $(cmake-utils_use tk PLD_ntk)
+ $(cmake-utils_use tk PLD_tk)
+ $(cmake-utils_use tk PLD_tkwin)
+ $(cmake-utils_use gd PLD_gif)
+ $(cmake-utils_use gd PLD_jpeg)
+ $(cmake-utils_use gd PLD_png)
+ $(cmake-utils_use pdf PLD_pdf)
+ $(cmake-utils_use latex PLD_ps)
+ $(cmake-utils_use latex PLD_pstex)
+ $(cmake-utils_use truetype PLD_psttf)
+ $(cmake-utils_use svg PLD_svg)
+ $(cmake-utils_use wxwidgets PLD_wxpng)
+ $(cmake-utils_use test PLD_ps)
+ $(cmake-utils_use wxwidgets PLD_wxwidgets)
+ $(cmake-utils_use X PLD_xwin)
+ )
+
+ [[ $(tc-getFC) != *g77 ]] && \
+ mycmakeargs+=(
+ $(cmake-utils_use_enable fortran f95)
+ )
+
+ use truetype && mycmakeargs+=(
+ -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont"
+ )
+
+ use python && mycmakeargs+=( $(cmake-utils_use_enable qt4 pyqt4) )
+ use doc && mycmakeargs+=( -DPREBUILT_DOC=ON )
+ cmake-utils_src_configure
+
+ # clean up bloated pkg-config files (help linking properly on prefix)
+ sed -i \
+ -e "/Cflags/s:-I\(${EPREFIX}\|\)/usr/include[[:space:]]::g" \
+ -e "/Libs/s:-L\(${EPREFIX}\|\)/usr/lib\(64\|\)[[:space:]]::g" \
+ -e "s:${LDFLAGS}::g" \
+ "${CMAKE_BUILD_DIR}"/pkgcfg/*pc || die
+}
+
+src_test() {
+ pushd "${CMAKE_BUILD_DIR}" > /dev/null
+ Xemake test || die "tests failed"
+ popd > /dev/null
+}
+
+src_install() {
+ cmake-utils_src_install
+ use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ if use java; then
+ rm -rf "${ED}"/usr/share/java "${ED}"/usr/$(get_libdir)/jni
+ java-pkg_dojar "${CMAKE_BUILD_DIR}"/examples/java/${PN}.jar
+ java-pkg_doso "${CMAKE_BUILD_DIR}"/bindings/java/plplotjavac_wrap.so
+ fi
+}