diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-11-04 01:51:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-11-04 01:51:33 +0000 |
| commit | bee52d5a581bb7b977ef9be16abfb88c2de62655 (patch) | |
| tree | b1dd0c3d9605ca5aa0fb0d3105f69c510e9eaaad /dev-python/pyFFTW | |
| parent | 2fbf908778d10043f7ee7c7326524412d4c7c64a (diff) | |
| download | baldeagleos-repo-bee52d5a581bb7b977ef9be16abfb88c2de62655.tar.gz baldeagleos-repo-bee52d5a581bb7b977ef9be16abfb88c2de62655.tar.xz baldeagleos-repo-bee52d5a581bb7b977ef9be16abfb88c2de62655.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyFFTW')
| -rw-r--r-- | dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild | 29 | ||||
| -rw-r--r-- | dev-python/pyFFTW/pyFFTW-9999.ebuild | 29 |
2 files changed, 42 insertions, 16 deletions
diff --git a/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild b/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild index 9cf149bd1181..399b6ad75bbd 100644 --- a/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild +++ b/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/pyFFTW/pyFFTW" LICENSE="BSD" SLOT="0" -if [ "${PV}" = "9999" ]; then +if [[ "${PV}" = "9999" ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/pyFFTW/pyFFTW.git" else @@ -19,11 +19,24 @@ else SRC_URI="https://github.com/pyFFTW/pyFFTW/archive/v${PV}.tar.gz -> ${P}.tar.gz" fi -IUSE="" +DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + >=sci-libs/fftw-3.3:3.0=[threads] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/dask[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" -DEPEND="dev-python/numpy[${PYTHON_USEDEP}] - >=sci-libs/fftw-3.3:3.0=[threads]" -RDEPEND="${PYTHON_DEPS} - ${DEPEND}" -BDEPEND="${PYTHON_DEPS} - dev-python/cython[${PYTHON_USEDEP}]" +distutils_enable_tests unittest + +python_test() { + cp -r -l -n test/ "${BUILD_DIR}/lib" || die + cd "${BUILD_DIR}/lib" || die + eunittest + rm -r test/ || die +} diff --git a/dev-python/pyFFTW/pyFFTW-9999.ebuild b/dev-python/pyFFTW/pyFFTW-9999.ebuild index 0f781da86dc1..399b6ad75bbd 100644 --- a/dev-python/pyFFTW/pyFFTW-9999.ebuild +++ b/dev-python/pyFFTW/pyFFTW-9999.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/pyFFTW/pyFFTW" LICENSE="BSD" SLOT="0" -if [ "${PV}" = "9999" ]; then +if [[ "${PV}" = "9999" ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/pyFFTW/pyFFTW.git" else @@ -19,11 +19,24 @@ else SRC_URI="https://github.com/pyFFTW/pyFFTW/archive/v${PV}.tar.gz -> ${P}.tar.gz" fi -IUSE="" +DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + >=sci-libs/fftw-3.3:3.0=[threads] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/dask[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" -DEPEND="dev-python/numpy[${PYTHON_USEDEP}] - >=sci-libs/fftw-3.3:3.0=[threads]" -RDEPEND="${DEPEND} - ${PYTHON_DEPS}" -BDEPEND="${PYTHON_DEPS} - dev-python/cython[${PYTHON_USEDEP}]" +distutils_enable_tests unittest + +python_test() { + cp -r -l -n test/ "${BUILD_DIR}/lib" || die + cd "${BUILD_DIR}/lib" || die + eunittest + rm -r test/ || die +} |
