summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-11-26 15:37:46 +0100
committerDavid Seifert <soap@gentoo.org>2017-11-27 00:33:10 +0100
commiteb4a7f129dfe3acbc85a72262dbc3a55caf1d45b (patch)
tree94480c45d65106c13cb4e9b8a59efb681808212f /sci-libs
parentxfce-extra/xfce4-taskmanager: [QA] Consistent whitespace in metadata.xml (diff)
downloadgentoo-eb4a7f129dfe3acbc85a72262dbc3a55caf1d45b.tar.gz
gentoo-eb4a7f129dfe3acbc85a72262dbc3a55caf1d45b.tar.bz2
gentoo-eb4a7f129dfe3acbc85a72262dbc3a55caf1d45b.zip
sci-libs/nanoflann: [QA] Add cmake-utils_src_prepare
Closes: https://bugs.gentoo.org/638490 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/nanoflann/Manifest2
-rw-r--r--sci-libs/nanoflann/nanoflann-1.2.3.ebuild22
-rw-r--r--sci-libs/nanoflann/nanoflann-9999.ebuild16
3 files changed, 18 insertions, 22 deletions
diff --git a/sci-libs/nanoflann/Manifest b/sci-libs/nanoflann/Manifest
index 09abb93da95d..231a10156246 100644
--- a/sci-libs/nanoflann/Manifest
+++ b/sci-libs/nanoflann/Manifest
@@ -1 +1 @@
-DIST nanoflann-1.2.3.tar.gz 1157793 SHA256 5ef4dfb23872379fe9eb306aabd19c9df4cae852b72a923af01aea5e8d7a59c3 SHA512 01d5226fb669c9ef21e1bd36bddb07c7bf8bbbf9798e90bfa7966de4ae01e05c669c33a73d37340c41c79fcab81c91c3991077d799a211985b2d0a2a365a8878 WHIRLPOOL 2a1c9a21dbd7571e4c680a2b5e3636086df4e06142d885b390983228a3cf3d36f01d0389fe712f1d9a9106a55887353a1ea7c057a289c727e98b9bf5308c1b20
+DIST nanoflann-1.2.3.tar.gz 1157793 BLAKE2B e6b3947c5c99689da5d3759e0217deca691bada8089cdd1e3cd41902b0db2533908fab1ff5474851064d3f2ab6a5a70429320bbf432a0381df4aec0139a6b2f4 SHA512 01d5226fb669c9ef21e1bd36bddb07c7bf8bbbf9798e90bfa7966de4ae01e05c669c33a73d37340c41c79fcab81c91c3991077d799a211985b2d0a2a365a8878
diff --git a/sci-libs/nanoflann/nanoflann-1.2.3.ebuild b/sci-libs/nanoflann/nanoflann-1.2.3.ebuild
index e82a84965d8b..4db99558405a 100644
--- a/sci-libs/nanoflann/nanoflann-1.2.3.ebuild
+++ b/sci-libs/nanoflann/nanoflann-1.2.3.ebuild
@@ -7,27 +7,29 @@ inherit cmake-utils
DESCRIPTION="C++ header-only library for Nearest Neighbor (NN) search wih KD-trees"
HOMEPAGE="https://github.com/jlblancoc/nanoflann"
-SRC_URI="https://github.com/jlblancoc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ ${PV} = *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://github.com/jlblancoc/nanoflann.git"
+else
+ SRC_URI="https://github.com/jlblancoc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND="dev-cpp/eigen:*"
+RDEPEND="dev-cpp/eigen:3"
DEPEND="${RDEPEND}"
src_prepare() {
- eapply_user
+ cmake-utils_src_prepare
# do not compile examples
- sed -ie 's/add_subdirectory(examples)//g' CMakeLists.txt || die "sed failed"
+ cmake_comment_add_subdirectory examples
}
src_test() {
- cd "${BUILD_DIR}" && emake -j1 test
-}
-
-src_compile() {
- :
+ "${CMAKE_MAKEFILE_GENERATOR}" -C "${BUILD_DIR}" -j1 test
}
diff --git a/sci-libs/nanoflann/nanoflann-9999.ebuild b/sci-libs/nanoflann/nanoflann-9999.ebuild
index 2c8467c00469..4db99558405a 100644
--- a/sci-libs/nanoflann/nanoflann-9999.ebuild
+++ b/sci-libs/nanoflann/nanoflann-9999.ebuild
@@ -8,11 +8,9 @@ inherit cmake-utils
DESCRIPTION="C++ header-only library for Nearest Neighbor (NN) search wih KD-trees"
HOMEPAGE="https://github.com/jlblancoc/nanoflann"
-if [[ ${PV} = *9999* ]]; then
+if [[ ${PV} = *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="git://github.com/jlblancoc/nanoflann.git"
- SRC_URI=""
- KEYWORDS=""
else
SRC_URI="https://github.com/jlblancoc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
@@ -22,20 +20,16 @@ LICENSE="BSD"
SLOT="0"
IUSE=""
-RDEPEND="dev-cpp/eigen:*"
+RDEPEND="dev-cpp/eigen:3"
DEPEND="${RDEPEND}"
src_prepare() {
- eapply_user
+ cmake-utils_src_prepare
# do not compile examples
- sed -ie 's/add_subdirectory(examples)//g' CMakeLists.txt || die "sed failed"
+ cmake_comment_add_subdirectory examples
}
src_test() {
- cd "${BUILD_DIR}" && emake -j1 test
-}
-
-src_compile() {
- :
+ "${CMAKE_MAKEFILE_GENERATOR}" -C "${BUILD_DIR}" -j1 test
}