public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/
Date: Thu, 10 Jun 2021 00:51:39 +0000 (UTC)	[thread overview]
Message-ID: <1623284357.b0aa532afd2954423184d67f407a1e866613b0f2.sam@gentoo> (raw)

commit:     b0aa532afd2954423184d67f407a1e866613b0f2
Author:     Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Mon May 17 09:03:08 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 00:19:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0aa532a

dev-cpp/pystring: New package

Pystring is a collection of C++ functions which match the interface and
behavior of python's string class methods using std::string. Implemented
in C++, it does not require or make use of a python interpreter. It
provides convenience and familiarity for common string operations not
included in the standard C++ library. It's also useful in environments
where both C++ and python are used.

Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/pystring/Manifest              |  1 +
 dev-cpp/pystring/metadata.xml          | 15 ++++++++++++++
 dev-cpp/pystring/pystring-1.1.3.ebuild | 38 ++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/dev-cpp/pystring/Manifest b/dev-cpp/pystring/Manifest
new file mode 100644
index 00000000000..eb3773a17b3
--- /dev/null
+++ b/dev-cpp/pystring/Manifest
@@ -0,0 +1 @@
+DIST pystring-1.1.3.tar.gz 18364 BLAKE2B caab1a3b1dc688ad6ecbb32e5e8139bb883a88b78ce8a021229924d57376e94b17d89277e2fccf4f7ec478c81ee9259c5e56848f4388c44b2eab9cfb841bcfb8 SHA512 a46bb2e96d6eb351a4a8097cde46ac2877d28e88f9e57e0ac36c42e8fc8543517c4be70306a01e2f88a891fc53c612494aeb37f47a200d94b8e1b050ed16eff6

diff --git a/dev-cpp/pystring/metadata.xml b/dev-cpp/pystring/metadata.xml
new file mode 100644
index 00000000000..1ce859e3e5b
--- /dev/null
+++ b/dev-cpp/pystring/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>darkdefende@gmail.com</email>
+		<name>Sebastian Parborg</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">imageworks/pystring</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-cpp/pystring/pystring-1.1.3.ebuild b/dev-cpp/pystring/pystring-1.1.3.ebuild
new file mode 100644
index 00000000000..78410abecfd
--- /dev/null
+++ b/dev-cpp/pystring/pystring-1.1.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2020-2021 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"
+	KEYWORDS="~amd64"
+fi
+
+BDEPEND="
+	virtual/libc
+	sys-devel/libtool
+"
+RESTRICT="mirror"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+
+src_compile() {
+	sed -i -e "s|-O3|${CXXFLAGS}|g" Makefile || die
+	emake LIBDIR="${S}" install
+
+	# Fix header location
+	mkdir ${S}/pystring || die
+	mv ${S}/pystring.h ${S}/pystring || die
+}
+
+src_install() {
+	dolib.so ${S}/libpystring.so{,.0{,.0.0}}
+	doheader -r ${S}/pystring
+}


             reply	other threads:[~2021-06-10  0:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  0:51 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-10 23:14 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/ Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:30 Sam James
2021-10-31  5:53 Sam James
2022-02-28  7:06 Yixun Lan
2022-02-28 23:58 Sam James
2023-08-01 15:42 Sam James
2024-12-22  1:30 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1623284357.b0aa532afd2954423184d67f407a1e866613b0f2.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox