summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2020-05-20 13:51:05 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2020-05-20 13:52:06 +0800
commit8a76ac6624b5fb0b52542cd67c138188b057f9f7 (patch)
treef74efc9596a8d773587c8d37bb20e3f8cb8ce86f
parent[dev-util/msgpack-cli] remove (diff)
downloadpigfoot-8a76ac6624b5fb0b52542cd67c138188b057f9f7.tar.gz
pigfoot-8a76ac6624b5fb0b52542cd67c138188b057f9f7.tar.bz2
pigfoot-8a76ac6624b5fb0b52542cd67c138188b057f9f7.zip
[dev-util/msgpack-tools] Add git version
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--dev-util/msgpack-tools/msgpack-tools-9999.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-util/msgpack-tools/msgpack-tools-9999.ebuild b/dev-util/msgpack-tools/msgpack-tools-9999.ebuild
new file mode 100644
index 0000000..d66cd29
--- /dev/null
+++ b/dev-util/msgpack-tools/msgpack-tools-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+CMAKE_IN_SOURCE_BUILD=1
+CMAKE_MAKEFILE_GENERATOR=emake
+
+MY_PN="github.com/ludocode/${PN}"
+MY_P="${P}"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://${MY_PN}"
+ EGIT_SUBMODULES=()
+else
+ EGIT_COMMIT="v${PV}"
+ MY_P="${PN}-tags-${EGIT_COMMIT}"
+ SRC_URI="https://${MY_PN}/archive/tags/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Command-line tools for converting between MessagePack and JSON"
+HOMEPAGE="https://github.com/ludocode/msgpack-tools"
+
+LICENSE="MIT"
+SLOT="0/${PVR}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ ./configure --prefix=/usr
+}