mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-29 04:27:34 -07:00
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
90 lines
1.7 KiB
Bash
90 lines
1.7 KiB
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=5
|
|
|
|
PYTHON_COMPAT=( python2_7 )
|
|
|
|
inherit flag-o-matic python-r1
|
|
|
|
MY_P="PyQwt-${PV}"
|
|
DESCRIPTION="Python bindings for the Qwt library"
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
|
HOMEPAGE="http://pyqwt.sourceforge.net/"
|
|
|
|
SLOT="5"
|
|
LICENSE="GPL-2"
|
|
KEYWORDS="amd64 arm ia64 x86"
|
|
IUSE="debug doc examples svg"
|
|
|
|
RDEPEND="
|
|
x11-libs/qwt:5[svg?]
|
|
dev-python/PyQt4[${PYTHON_USEDEP}]
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
|
DEPEND="${DEPEND}
|
|
dev-python/sip[${PYTHON_USEDEP}]"
|
|
|
|
S="${WORKDIR}/${MY_P}/configure"
|
|
|
|
src_prepare() {
|
|
python_copy_sources
|
|
append-flags -fPIC
|
|
}
|
|
|
|
src_configure() {
|
|
configuration() {
|
|
local myonf=()
|
|
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
|
|
}
|