From 08c01e77477588693d19949b0d639d36b28e770d Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Wed, 23 Dec 2020 21:39:47 +0200 Subject: [PATCH] media-libs/pystring: add pystring Package-Manager: Portage-3.0.9, Repoman-3.0.2 --- media-libs/pystring/Manifest | 1 + media-libs/pystring/metadata.xml | 11 +++++++++ media-libs/pystring/pystring-1.1.3.ebuild | 29 +++++++++++++++++++++++ media-libs/pystring/pystring-9999.ebuild | 29 +++++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 media-libs/pystring/Manifest create mode 100644 media-libs/pystring/metadata.xml create mode 100644 media-libs/pystring/pystring-1.1.3.ebuild create mode 100644 media-libs/pystring/pystring-9999.ebuild diff --git a/media-libs/pystring/Manifest b/media-libs/pystring/Manifest new file mode 100644 index 0000000..eb3773a --- /dev/null +++ b/media-libs/pystring/Manifest @@ -0,0 +1 @@ +DIST pystring-1.1.3.tar.gz 18364 BLAKE2B caab1a3b1dc688ad6ecbb32e5e8139bb883a88b78ce8a021229924d57376e94b17d89277e2fccf4f7ec478c81ee9259c5e56848f4388c44b2eab9cfb841bcfb8 SHA512 a46bb2e96d6eb351a4a8097cde46ac2877d28e88f9e57e0ac36c42e8fc8543517c4be70306a01e2f88a891fc53c612494aeb37f47a200d94b8e1b050ed16eff6 diff --git a/media-libs/pystring/metadata.xml b/media-libs/pystring/metadata.xml new file mode 100644 index 0000000..d644da5 --- /dev/null +++ b/media-libs/pystring/metadata.xml @@ -0,0 +1,11 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + imageworks/pystring + + diff --git a/media-libs/pystring/pystring-1.1.3.ebuild b/media-libs/pystring/pystring-1.1.3.ebuild new file mode 100644 index 0000000..1bcf26b --- /dev/null +++ b/media-libs/pystring/pystring-1.1.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="C++ functions matching the interface and behavior of python string methods" +HOMEPAGE="https://github.com/imageworks/pystring" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/imageworks/pystring.git" +else + SRC_URI="https://github.com/imageworks/pystring/archive/v"${PV}".tar.gz -> "${P}".tar.gz" +fi + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + emake LIBDIR="${S}" install + mkdir pystring || die + mv pystring.h pystring || die +} + +src_install() { + dolib.so libpystring.so{,.0{,.0.0}} + doheader -r pystring +} diff --git a/media-libs/pystring/pystring-9999.ebuild b/media-libs/pystring/pystring-9999.ebuild new file mode 100644 index 0000000..1bcf26b --- /dev/null +++ b/media-libs/pystring/pystring-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="C++ functions matching the interface and behavior of python string methods" +HOMEPAGE="https://github.com/imageworks/pystring" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/imageworks/pystring.git" +else + SRC_URI="https://github.com/imageworks/pystring/archive/v"${PV}".tar.gz -> "${P}".tar.gz" +fi + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + emake LIBDIR="${S}" install + mkdir pystring || die + mv pystring.h pystring || die +} + +src_install() { + dolib.so libpystring.so{,.0{,.0.0}} + doheader -r pystring +}