diff options
Diffstat (limited to 'dev-python/pyFFTW')
-rw-r--r-- | dev-python/pyFFTW/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild | 31 | ||||
-rw-r--r-- | dev-python/pyFFTW/pyFFTW-9999.ebuild | 31 |
3 files changed, 46 insertions, 20 deletions
diff --git a/dev-python/pyFFTW/Manifest b/dev-python/pyFFTW/Manifest index 9a059a9d3f95..d0f0adb1c9c2 100644 --- a/dev-python/pyFFTW/Manifest +++ b/dev-python/pyFFTW/Manifest @@ -1,4 +1,4 @@ DIST pyFFTW-0.12.0.tar.gz 147372 BLAKE2B 1ea1f1f8de6759c42781a535b30d7119c0cb02dffea3abfe4130a97c465e000aa9b3064a219718569552304513a77ac51aa309f1be29f9eecae25c63cce70c6c SHA512 e4d7258d5c053b5367d8c4f1892eba8e595f9d540c1c3e6caf61e0c113d598ba872b5e72a21edace66be70d9ad75c599e4b1fbc692e0015c3c1ae35e9a7ba599 -EBUILD pyFFTW-0.12.0-r1.ebuild 690 BLAKE2B e2d9ede8c238fd5b2a80179471c84e544dadfa6c66b8c9757a9ec4d6b71874c88ebc39ffe964821ecd939ccecbb30c17015e9ed175b5c322a1efa038fb8f97f9 SHA512 63a4e34b8f54643e136b45b71c7090c15aa34e4b32811ca49833432d8ba9c5afb7c06860f77cca9eb5386e6cf6adffeb2a143c2a8e13f5a48732f3dbc7434659 -EBUILD pyFFTW-9999.ebuild 690 BLAKE2B 3fbbfd46920dc70b29269224165a837b1a226c69ab140d183deff1e228c7e159a0ab9e547cb97bf324b0eac4333d8b1e571f97ebea49e047dd750518548f31e0 SHA512 2c569906af5320961bf7cb125ebfbd9830d12090a1255d25336116e7d08ec5b4a4139ab791c09940e04cd19f2eb1e94044e5fd965cbfe351d626a9d2fd0ce1d6 +EBUILD pyFFTW-0.12.0-r1.ebuild 898 BLAKE2B 036d3ce450d070ba141eef9a14b6a370fd3d4a49f12fda27b53e08ff5f492a22071f8ed5555ba4e50b02138da7c40e3f58cfc37392896391d8fbff6e9c787722 SHA512 c9a5a7296d07d6b9fbebdafc868ec4ae987d671dda45d568d7564d66829e6f3de7b234d045e938a268a850ed31761a041171f2077ed9d40715ad5c645cf2c584 +EBUILD pyFFTW-9999.ebuild 898 BLAKE2B 036d3ce450d070ba141eef9a14b6a370fd3d4a49f12fda27b53e08ff5f492a22071f8ed5555ba4e50b02138da7c40e3f58cfc37392896391d8fbff6e9c787722 SHA512 c9a5a7296d07d6b9fbebdafc868ec4ae987d671dda45d568d7564d66829e6f3de7b234d045e938a268a850ed31761a041171f2077ed9d40715ad5c645cf2c584 MISC metadata.xml 469 BLAKE2B f5f6504ccb53aaf8fb993ea0fd780430f54d8500762ababa8992b22a3b20c3511a8b4d581e4ec7c90ad6593c355ddcca36f2b66d5f1aada806514fab272207c7 SHA512 b2dcfff7de1c959732800e56377e74a23fff5d1d7b6a818d720845be576a9640865a329d99599fbc95fb1b853550760769ce7df0ebac33082b7468419c93a80c diff --git a/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild b/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild index 80870ef7a971..8ec87a34fe67 100644 --- a/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild +++ b/dev-python/pyFFTW/pyFFTW-0.12.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8..9} ) inherit distutils-r1 DESCRIPTION="A pythonic python wrapper around FFTW" @@ -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 c667ef6827f0..8ec87a34fe67 100644 --- a/dev-python/pyFFTW/pyFFTW-9999.ebuild +++ b/dev-python/pyFFTW/pyFFTW-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8..9} ) inherit distutils-r1 DESCRIPTION="A pythonic python wrapper around FFTW" @@ -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 +} |