summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <michael@xmw.de>2018-04-02 14:40:44 +0200
committerMichael Weber <michael@xmw.de>2018-04-02 14:40:44 +0200
commit4102a70eaf093258025df0fe94f658274e193dc2 (patch)
treef9d9d24e587d5c60595663e93bde7c71f3e822b4
parentsci-libs/pyvisa: fix DESCRIPTION (diff)
downloadxmw-4102a70eaf093258025df0fe94f658274e193dc2.tar.gz
xmw-4102a70eaf093258025df0fe94f658274e193dc2.tar.bz2
xmw-4102a70eaf093258025df0fe94f658274e193dc2.zip
moved contributions to sci.gitHEADmaster
-rw-r--r--games-util/mapcrafter/files/mapcrafter-9999-libdir.patch11
-rw-r--r--games-util/mapcrafter/mapcrafter-9999.ebuild31
-rw-r--r--games-util/mapcrafter/metadata.xml (renamed from sci-libs/pyvisa/metadata.xml)0
-rw-r--r--sci-libs/pyvisa/pyvisa-9999.ebuild33
4 files changed, 42 insertions, 33 deletions
diff --git a/games-util/mapcrafter/files/mapcrafter-9999-libdir.patch b/games-util/mapcrafter/files/mapcrafter-9999-libdir.patch
new file mode 100644
index 0000000..3443bb6
--- /dev/null
+++ b/games-util/mapcrafter/files/mapcrafter-9999-libdir.patch
@@ -0,0 +1,11 @@
+--- mapcrafter-9999/src/mapcraftercore/CMakeLists.txt
++++ mapcrafter-9999/src/mapcraftercore/CMakeLists.txt
+@@ -88,7 +88,7 @@
+ endif()
+ endif()
+
+-install(TARGETS mapcraftercore DESTINATION lib)
++install(TARGETS mapcraftercore DESTINATION ${LIB_INSTALL_DIR})
+
+ if(OPT_INSTALL_HEADERS)
+ foreach(HEADER ${HEADERS})
diff --git a/games-util/mapcrafter/mapcrafter-9999.ebuild b/games-util/mapcrafter/mapcrafter-9999.ebuild
new file mode 100644
index 0000000..78272ea
--- /dev/null
+++ b/games-util/mapcrafter/mapcrafter-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils git-r3
+
+DESCRIPTION="high performance Minecraft map renderer written in C++"
+HOMEPAGE="https://mapcrafter.org/"
+EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug profile"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-libdir.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR=$(get_libdir)
+ -DOPT_OPTIMIZE=Off
+ -DOPT_DEBUG=$(usex debug)
+ -DOPT_PROFILE=$(usex profile)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/sci-libs/pyvisa/metadata.xml b/games-util/mapcrafter/metadata.xml
index a535b88..a535b88 100644
--- a/sci-libs/pyvisa/metadata.xml
+++ b/games-util/mapcrafter/metadata.xml
diff --git a/sci-libs/pyvisa/pyvisa-9999.ebuild b/sci-libs/pyvisa/pyvisa-9999.ebuild
deleted file mode 100644
index 230bf2f..0000000
--- a/sci-libs/pyvisa/pyvisa-9999.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
-
-inherit git-r3 distutils-r1
-
-DESCRIPTION="Python bindings to the Virtual Instrument Software Architecture VISA library"
-HOMEPAGE="https://pyvisa.readthedocs.org"
-EGIT_REPO_URI="https://github.com/pyvisa/pyvisa.git"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS=""
-IUSE="doc"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx )"
-
-src_compile() {
- distutils-r1_src_compile
- use doc && emake -C docs html
-}
-
-src_install() {
- distutils-r1_src_install
- if use doc ; then
- dodoc -r docs/_build/html
- fi
- dodoc examples/*
-}