From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1209704-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 43587138359 for <garchives@archives.gentoo.org>; Fri, 25 Sep 2020 22:57:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8879AE07FA; Fri, 25 Sep 2020 22:56:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FDCCE07FA for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 22:56:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B31F335C07 for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 22:56:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3737357 for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 22:56:56 +0000 (UTC) From: "Aisha Tammy" <gentoo@aisha.cc> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" <gentoo@aisha.cc> Message-ID: <1601074611.e535df72eeecfcae9a0f18dd392d2659e25e1a81.epsilon-0@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/simclist/ X-VCS-Repository: proj/sci X-VCS-Files: dev-libs/simclist/metadata.xml dev-libs/simclist/simclist-1.6.ebuild dev-libs/simclist/simclist-1.6_p1.ebuild X-VCS-Directories: dev-libs/simclist/ X-VCS-Committer: epsilon-0 X-VCS-Committer-Name: Aisha Tammy X-VCS-Revision: e535df72eeecfcae9a0f18dd392d2659e25e1a81 X-VCS-Branch: master Date: Fri, 25 Sep 2020 22:56:56 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 49ba3a40-5901-4862-9a2c-c3d9a7b10013 X-Archives-Hash: 2f6b5bcc7baa1857a18bb1963c8b4e82 commit: e535df72eeecfcae9a0f18dd392d2659e25e1a81 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> AuthorDate: Fri Sep 25 22:56:51 2020 +0000 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> CommitDate: Fri Sep 25 22:56:51 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e535df72 dev-libs/simclist: various fixes and options Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> dev-libs/simclist/metadata.xml | 14 ++++++--- dev-libs/simclist/simclist-1.6.ebuild | 42 -------------------------- dev-libs/simclist/simclist-1.6_p1.ebuild | 52 ++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 47 deletions(-) diff --git a/dev-libs/simclist/metadata.xml b/dev-libs/simclist/metadata.xml index 27a2343d7..8426fdb21 100644 --- a/dev-libs/simclist/metadata.xml +++ b/dev-libs/simclist/metadata.xml @@ -6,9 +6,13 @@ <name>Gentoo Science Project</name> </maintainer> <longdescription> -SimCList is a high quality C (C++ embeddable) library for handling -lists. It exploits several advanced techniques for improving -performance, including freelists, sentinels, automatic sort algorithm -selection, sort randomization, mid pointer and optional multithreading. -</longdescription> + SimCList is a high quality C (C++ embeddable) library for handling + lists. It exploits several advanced techniques for improving + performance, including freelists, sentinels, automatic sort algorithm + selection, sort randomization, mid pointer and optional multithreading. + </longdescription> + <use> + <flag name="dump">Disable building of dump and restore functionalities</flag> + <flag name="hash">Allow list_hash() to work exclusively on memory locations</flag> + </use> </pkgmetadata> diff --git a/dev-libs/simclist/simclist-1.6.ebuild b/dev-libs/simclist/simclist-1.6.ebuild deleted file mode 100644 index 179cabbcb..000000000 --- a/dev-libs/simclist/simclist-1.6.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit cmake-utils - -DESCRIPTION="SimCList is a high quality C (C++ embeddable) library for handling lists" -HOMEPAGE="http://mij.oltrelinux.com/devel/simclist" -SRC_URI="${HOMEPAGE}/${P/_/}.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples" - -S="${WORKDIR}/${P/_/}" - -DEPEND="doc? ( app-doc/doxygen )" -RDEPEND="" - -src_compile(){ - cmake-utils_src_compile - if use doc; then - doxygen || die "doxygen failed" - fi -} - -src_install() { - mkdir -p "${D}"/usr/include - cp simclist.h "${D}"/usr/include/ - cd "${BUILD_DIR}" - dolib libsimclist.so - cd "${S}" - if use doc; then - dohtml -r doc/html/* - fi - if use examples; then - docinto examples - dodoc examples/* - fi -} diff --git a/dev-libs/simclist/simclist-1.6_p1.ebuild b/dev-libs/simclist/simclist-1.6_p1.ebuild new file mode 100644 index 000000000..2b7eb84f1 --- /dev/null +++ b/dev-libs/simclist/simclist-1.6_p1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="SimCList is a high quality C (C++ embeddable) library for handling lists" +HOMEPAGE="https://mij.oltrelinux.com/devel/simclist" +COMMIT=6aef848d1743af66045a6f413cd3b8b1f1578c15 +SRC_URI="https://github.com/mij/simclist/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${COMMIT} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc dump hash threads" + +BDEPEND="doc? ( app-doc/doxygen )" + +CMAKE_IN_SOURCE_BUILD=1 + +src_prepare() { + sed -i -e "/-O2/d" CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DSIMCLIST_DEBUG=$(usex debug) + -DSIMCLIST_THREADING=$(usex threads) + -DSIMCLIST_NO_DUMPRESTORE=$(usex dump) + -DSIMCLIST_ALLOW_LOCATIONBASED_HASHES=$(usex hash) + ) + cmake_src_configure +} + +src_compile(){ + cmake_src_compile + if use doc; then + doxygen || die "doxygen failed" + fi +} + +src_install() { + doheader simclist.h + dolib.so libsimclist.so + + if use doc ; then + dodoc -r doc/html/* + fi +}