diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/visual |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/visual')
-rw-r--r-- | dev-python/visual/Manifest | 6 | ||||
-rw-r--r-- | dev-python/visual/files/visual-5.74-boost-1.50.patch | 28 | ||||
-rw-r--r-- | dev-python/visual/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/visual/visual-5.74-r1.ebuild | 71 |
4 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/visual/Manifest b/dev-python/visual/Manifest new file mode 100644 index 000000000000..c3f1a67af07a --- /dev/null +++ b/dev-python/visual/Manifest @@ -0,0 +1,6 @@ +AUX visual-5.74-boost-1.50.patch 860 SHA256 3b910d73e0df7b015640090c31362484e039e6644bc551c10d3879f80c4d3c6e SHA512 cbfc6596431cc402e1d5cb767b663856b540bf378aac3f5680f310391f8704852331927f607fcb78c5b7ea2e9dcbcd77e8e0bd007a5332be0484675eb67d1b31 WHIRLPOOL 119a3777fd4e6a5860d58a9b53827978aea662631e93f998bb196c567a90ebf07c6dcd669aaec35d64e91c8a57fa066e8dae289a1d72a56ab766513888f932e3 +DIST visual-5.74_release.tar.bz2 5736404 SHA256 1e480d3fd82e8172021ae0e22e8e2859f44bec9297e12ebf672270fd8e7d7099 SHA512 eff43bae66d4ca6a1b540e729b5f03e7310db8d4c49ba7a1ac271afa62688d9024f4f00b7678669433ca3f0f6e13e6c0c3de90a4a845ae5eeaa70b536a6e1193 WHIRLPOOL d0c35354e8fcaf591870dce867e60a9b54a9eb31acdd6eb05331566c031bf0a7da794e7f9dc8e013eff10583eadccefda08ef79443761129d9ca56f05626acd8 +EBUILD visual-5.74-r1.ebuild 1892 SHA256 704d6275f9c9085eeb27b27a77a70b697ee4fe763e216747c5a24b48ea0e581d SHA512 eca07a30198a5ad261d65729b5953c6a74b4526f9a7ebecbef2ba142f99b3397d4a10560864096fe60a57d202e80094c821b23151ecdfd726421ee90bed6c35d WHIRLPOOL ebf074e609d03564d968307a8d8f231cd9079e92004e22ac676e4a55237a3f2fc4cc59b0b10d618d5ec761c1dfdb5f600fff17694af170d0292f82e98b3a58c6 +MISC ChangeLog 3663 SHA256 b211e7d221e01b11f36aeb3c59c53225d6c36b34058fb3ddf0bae973709949f3 SHA512 239b902dc667ee65ab0bd000c13532b585b0dfff997d2a00a40c073ff9f2fc248a69b2f0057751476e892f730c500c5c0d47deb2113b0029e5bc45da2b3f5fe6 WHIRLPOOL 4e904e4aedc8e48b93929adc6cadad05a0db2e72c13f96d15faf962f7c78941ac21c61495327fbb17918e0616397d27d06f69c42493bd3a6d481c0cc305fb6b9 +MISC ChangeLog-2015 9133 SHA256 df35f1e6381b7feae9555e50087ec9bfad9a57729a138f07f2f4dbf26ce8eb7f SHA512 1ac20d7c232c916ed3db058755f4d6dec84ebadb4df4ed8dfb4cc708d6b4f6b3500b8ccdfb339be83795053077e31d01b09407723e04891dc3a70a8dcd1c8a66 WHIRLPOOL 8d50e48ec91748ac952a89edadcf706ed4aee330133f4fd1d167cfa2516e69bd1ea5ac28b1e2fa95c0e53305849f700f940d22019e810c7be7486b3d0b01a206 +MISC metadata.xml 246 SHA256 634432e12556106844e569b7ff16962881c6e70887e6fc9650bdd82deb51a834 SHA512 3245fb694492b2f698fb63aac02e66fb8a94fe35eabda45df4790bec043a1ea552e112315334001902f070093bb73e7b741aa3004757404aed97ebdb86cc9fbc WHIRLPOOL 869ef1c8e23bdae0a11b44ccf38ddec23f0dc0ae2573bc83ccbe2d8a2c6bf5a3f9c3c52149aa2e3690dd66f7fc7ec498f2eb6b9d338440fb54c12d5ac0b9fb7a diff --git a/dev-python/visual/files/visual-5.74-boost-1.50.patch b/dev-python/visual/files/visual-5.74-boost-1.50.patch new file mode 100644 index 000000000000..a66ded258987 --- /dev/null +++ b/dev-python/visual/files/visual-5.74-boost-1.50.patch @@ -0,0 +1,28 @@ +https://github.com/vpython/visual/issues/3 + +--- dependencies/threadpool/include/threadpool/task_adaptors.hpp ++++ dependencies/threadpool/include/threadpool/task_adaptors.hpp +@@ -135,7 +135,11 @@ + if(m_break_s > 0 || m_break_ns > 0) + { // Sleep some time before first execution + xtime xt; ++#if BOOST_VERSION >= 105000 ++ xtime_get(&xt, TIME_UTC_); ++#else + xtime_get(&xt, TIME_UTC); ++#endif + xt.nsec += m_break_ns; + xt.sec += m_break_s; + thread::sleep(xt); +@@ -146,7 +150,11 @@ + if(m_break_s > 0 || m_break_ns > 0) + { + xtime xt; ++#if BOOST_VERSION >= 105000 ++ xtime_get(&xt, TIME_UTC_); ++#else + xtime_get(&xt, TIME_UTC); ++#endif + xt.nsec += m_break_ns; + xt.sec += m_break_s; + thread::sleep(xt); diff --git a/dev-python/visual/metadata.xml b/dev-python/visual/metadata.xml new file mode 100644 index 000000000000..e24dd86faa2a --- /dev/null +++ b/dev-python/visual/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/visual/visual-5.74-r1.ebuild b/dev-python/visual/visual-5.74-r1.ebuild new file mode 100644 index 000000000000..3c771156efbf --- /dev/null +++ b/dev-python/visual/visual-5.74-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic multilib python-single-r1 versionator + +MY_P="${PN}-$(delete_version_separator 2)_release" + +DESCRIPTION="Real-time 3D graphics library for Python" +HOMEPAGE="http://www.vpython.org/" +SRC_URI="http://www.vpython.org/contents/download/${MY_P}.tar.bz2" + +LICENSE="HPND Boost-1.0" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="doc examples" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-cpp/gtkglextmm-1.2 + dev-cpp/libglademm + >=dev-libs/boost-1.48:=[threads,python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/polygon:2[${PYTHON_USEDEP}] + dev-python/ttfquery[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Verbose build. + sed -i \ + -e 's/2\?>>[[:space:]]*\$(LOGFILE).*//' \ + src/Makefile.in || die + + epatch "${FILESDIR}/${P}-boost-1.50.patch" + + sed \ + -e "s/-lboost_python/-lboost_python-${EPYTHON#python}/" \ + -e "s/libboost_python/libboost_python-${EPYTHON#python}/" \ + -i src/Makefile.in src/gtk2/makefile || die +} + +src_configure() { + BOOST_PKG="$(best_version ">=dev-libs/boost-1.48")" + BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" + BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" + BOOST_INC="${EPREFIX}/usr/include/boost-${BOOST_VER}" + BOOST_LIB="${EPREFIX}/usr/$(get_libdir)/boost-${BOOST_VER}" + + # Specify the include and lib directory for Boost. + append-cxxflags -I${BOOST_INC} -std=c++11 + append-ldflags -L${BOOST_LIB} + + econf \ + --with-example-dir="${EPREFIX}/usr/share/doc/${PF}/examples" \ + --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ + $(use_enable doc docs) \ + $(use_enable examples) +} + +src_install() { + default + + dodoc authors.txt HACKING.txt NEWS.txt +} |