diff options
Diffstat (limited to 'dev-python/pyqwt')
-rw-r--r-- | dev-python/pyqwt/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pyqwt/metadata.xml | 18 | ||||
-rw-r--r-- | dev-python/pyqwt/pyqwt-5.2.0-r2.ebuild | 90 |
3 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/pyqwt/Manifest b/dev-python/pyqwt/Manifest new file mode 100644 index 000000000000..c302906d437a --- /dev/null +++ b/dev-python/pyqwt/Manifest @@ -0,0 +1,5 @@ +DIST PyQwt-5.2.0.tar.gz 2670893 SHA256 98a8c7e0c76d07701c11dffb77793b05f071b664a8b520d6e97054a98179e70b SHA512 8c409ee228d91d625bf9bd8a5704c3d41f70613b420bc8f1527312dd1ebb686b8482bd68c4b3d1a72edd80673533a4f5a39378221967bea70f389c9dde14f265 WHIRLPOOL ab5e8d1b094552df592062ad41d786e58621465d318eaa2e199cdf45163e39be24f8c268aec33b428b4daa92c4c85342925df109792475507425f90c76e86c70 +EBUILD pyqwt-5.2.0-r2.ebuild 1907 SHA256 606c1935c01117d993c195f56590ac70687da97b56813941ee998ed02cb3ef30 SHA512 a3c7827ac631b06c11cd8f17aa5b2f0cd15f05569c4b323fa8bc848f0f1b662025a7778a75824e6ce613fcee28b8a89a0a08b41128a3b9684b223c0273de7caf WHIRLPOOL bb8f4f8d6a231c660ef85541852900f25642efc86d1f80787602dc032d79d8d46c79627bbc83f9711d5fe8cc66ec81483398209e4632b76f899e36e9b9ad606f +MISC ChangeLog 3738 SHA256 b8c6171c7b26ba374af493c9bafa06ccd5872a7e1c981b7a5bfb1b15878f2a43 SHA512 96d4b5fc99f8a44b47590ec95d2e0dd176b8467e088c318445a18e8e727053866cbddff4c067478d2263db02f9d9565c8d214e8b39b5f2d073f9abb9c87c1ffb WHIRLPOOL df5f95e31923e4d0df3c1bdcdcb707d3cf5619fd6f2f54abe4c4d30a459d15283445772a1822ad68c4ec7913f176994106d1ff4ba5017ed29197952a42c1fbcf +MISC ChangeLog-2015 3763 SHA256 8fa11408375407fee26562b30a18881beae4d54b2a4ef834ed8e4e7c26c8be95 SHA512 7871c8a634fe36a1ad4c24a481032a4d73796ac414068e3ee24ba84019a2954f0bd4c8de23a869370e150c45b5fe6ddd014ce58d870c9702501a9af6b33f8810 WHIRLPOOL f492d8b1daafe0c6e9cca2d7d8726e918cc740da770f75f59869ce4f9c630a7a2d713b04125939d3450067b0a33257832e2f4b6c3283d1280f9fc6205c1f23e4 +MISC metadata.xml 662 SHA256 4f63ea6d79473f9b489595fe59f46733b296b068896f9ef536fe59250942c55c SHA512 dd9c021d0b2bc9b51d1952643bd7ca475786914fc1ddf125212cfb2450cf1fb930491e47cd0182521a10f975f30770d109f5bdf5c53ae8648257b2a485119fb4 WHIRLPOOL 4aa7c45189743b7b3b8a6eea0d7995701413536a25f3cf963e1dd5bfd1c3e3ee0f37ceb500f2c44140fb0351f7d112a79327e016481bb7a722ddfed47cee79fe diff --git a/dev-python/pyqwt/metadata.xml b/dev-python/pyqwt/metadata.xml new file mode 100644 index 000000000000..7f74fabb62c0 --- /dev/null +++ b/dev-python/pyqwt/metadata.xml @@ -0,0 +1,18 @@ +<?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> + <longdescription lang="en"> + PyQwt is a set of Python bindings for the Qwt C++ class library which + extends the Qt framework with widgets for scientific and engineering + applications. It provides a widget to plot 2-dimensional data and + various widgets to display and control bounded or unbounded floating + point values. + </longdescription> + <upstream> + <remote-id type="sourceforge">pyqwt</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyqwt/pyqwt-5.2.0-r2.ebuild b/dev-python/pyqwt/pyqwt-5.2.0-r2.ebuild new file mode 100644 index 000000000000..cd1fb2e2c252 --- /dev/null +++ b/dev-python/pyqwt/pyqwt-5.2.0-r2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit flag-o-matic python-r1 qmake-utils + +DESCRIPTION="Python bindings for the Qwt library" +HOMEPAGE="http://pyqwt.sourceforge.net/" +MY_P="PyQwt-${PV}" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +SLOT="5" +LICENSE="GPL-2" +KEYWORDS="amd64 arm ia64 x86" +IUSE="debug doc examples svg" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/PyQt4[${PYTHON_USEDEP},compat(+)] + dev-python/sip[${PYTHON_USEDEP}] + x11-libs/qwt:5[svg?]" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S=${WORKDIR}/${MY_P}/configure + +src_prepare() { + sed -i -e "s|configuration.qt_dir, 'bin'|'$(qt4_get_bindir)'|" configure.py || die + python_copy_sources + append-flags -fPIC +} + +src_configure() { + configuration() { + local myconf=() + use debug && myconf+=( --debug ) + + cd "${BUILD_DIR}" || die + # '-j' option can be buggy. + "${PYTHON}" configure.py \ + --extra-cflags="${CFLAGS}" \ + --extra-cxxflags="${CXXFLAGS}" \ + --extra-lflags="${LDFLAGS}" \ + --disable-numarray \ + --disable-numeric \ + -I/usr/include/qwt5 \ + -lqwt \ + ${myconf[@]} \ + || die "configure.py failed" + + # Avoid stripping of the libraries. + sed -i -e "/strip/d" {iqt5qt4,qwt5qt4}/Makefile || die "sed failed" + } + python_foreach_impl configuration +} + +src_compile() { + compilation() { + cd "${BUILD_DIR}" || die + default + } + python_foreach_impl compilation + + if use doc; then + cd "${S}"/../sphinx || die + emake + fi +} + +src_install() { + installation() { + cd "${BUILD_DIR}" || die + emake DESTDIR="${D}" install + } + python_foreach_impl installation + + cd "${S}"/.. || die + + dodoc ANNOUNCEMENT-${PV} README + + use doc && dodoc -r sphinx/build/. + if use examples; then + docinto examples + dodoc -r qt4examples/. + fi +} |