Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/simclist/
Date: Fri, 25 Sep 2020 22:57:00
Message-Id: 1601074611.e535df72eeecfcae9a0f18dd392d2659e25e1a81.epsilon-0@gentoo
1 commit: e535df72eeecfcae9a0f18dd392d2659e25e1a81
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Sep 25 22:56:51 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Sep 25 22:56:51 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e535df72
7
8 dev-libs/simclist: various fixes and options
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 dev-libs/simclist/metadata.xml | 14 ++++++---
14 dev-libs/simclist/simclist-1.6.ebuild | 42 --------------------------
15 dev-libs/simclist/simclist-1.6_p1.ebuild | 52 ++++++++++++++++++++++++++++++++
16 3 files changed, 61 insertions(+), 47 deletions(-)
17
18 diff --git a/dev-libs/simclist/metadata.xml b/dev-libs/simclist/metadata.xml
19 index 27a2343d7..8426fdb21 100644
20 --- a/dev-libs/simclist/metadata.xml
21 +++ b/dev-libs/simclist/metadata.xml
22 @@ -6,9 +6,13 @@
23 <name>Gentoo Science Project</name>
24 </maintainer>
25 <longdescription>
26 -SimCList is a high quality C (C++ embeddable) library for handling
27 -lists. It exploits several advanced techniques for improving
28 -performance, including freelists, sentinels, automatic sort algorithm
29 -selection, sort randomization, mid pointer and optional multithreading.
30 -</longdescription>
31 + SimCList is a high quality C (C++ embeddable) library for handling
32 + lists. It exploits several advanced techniques for improving
33 + performance, including freelists, sentinels, automatic sort algorithm
34 + selection, sort randomization, mid pointer and optional multithreading.
35 + </longdescription>
36 + <use>
37 + <flag name="dump">Disable building of dump and restore functionalities</flag>
38 + <flag name="hash">Allow list_hash() to work exclusively on memory locations</flag>
39 + </use>
40 </pkgmetadata>
41
42 diff --git a/dev-libs/simclist/simclist-1.6.ebuild b/dev-libs/simclist/simclist-1.6.ebuild
43 deleted file mode 100644
44 index 179cabbcb..000000000
45 --- a/dev-libs/simclist/simclist-1.6.ebuild
46 +++ /dev/null
47 @@ -1,42 +0,0 @@
48 -# Copyright 1999-2014 Gentoo Foundation
49 -# Distributed under the terms of the GNU General Public License v2
50 -
51 -EAPI=5
52 -
53 -inherit cmake-utils
54 -
55 -DESCRIPTION="SimCList is a high quality C (C++ embeddable) library for handling lists"
56 -HOMEPAGE="http://mij.oltrelinux.com/devel/simclist"
57 -SRC_URI="${HOMEPAGE}/${P/_/}.tar.bz2"
58 -
59 -LICENSE="BSD"
60 -SLOT="0"
61 -KEYWORDS="~amd64 ~x86"
62 -IUSE="doc examples"
63 -
64 -S="${WORKDIR}/${P/_/}"
65 -
66 -DEPEND="doc? ( app-doc/doxygen )"
67 -RDEPEND=""
68 -
69 -src_compile(){
70 - cmake-utils_src_compile
71 - if use doc; then
72 - doxygen || die "doxygen failed"
73 - fi
74 -}
75 -
76 -src_install() {
77 - mkdir -p "${D}"/usr/include
78 - cp simclist.h "${D}"/usr/include/
79 - cd "${BUILD_DIR}"
80 - dolib libsimclist.so
81 - cd "${S}"
82 - if use doc; then
83 - dohtml -r doc/html/*
84 - fi
85 - if use examples; then
86 - docinto examples
87 - dodoc examples/*
88 - fi
89 -}
90
91 diff --git a/dev-libs/simclist/simclist-1.6_p1.ebuild b/dev-libs/simclist/simclist-1.6_p1.ebuild
92 new file mode 100644
93 index 000000000..2b7eb84f1
94 --- /dev/null
95 +++ b/dev-libs/simclist/simclist-1.6_p1.ebuild
96 @@ -0,0 +1,52 @@
97 +# Copyright 1999-2020 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=7
101 +
102 +inherit cmake
103 +
104 +DESCRIPTION="SimCList is a high quality C (C++ embeddable) library for handling lists"
105 +HOMEPAGE="https://mij.oltrelinux.com/devel/simclist"
106 +COMMIT=6aef848d1743af66045a6f413cd3b8b1f1578c15
107 +SRC_URI="https://github.com/mij/simclist/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
108 +S="${WORKDIR}"/${PN}-${COMMIT}
109 +
110 +LICENSE="BSD"
111 +SLOT="0"
112 +KEYWORDS="~amd64 ~x86"
113 +IUSE="debug doc dump hash threads"
114 +
115 +BDEPEND="doc? ( app-doc/doxygen )"
116 +
117 +CMAKE_IN_SOURCE_BUILD=1
118 +
119 +src_prepare() {
120 + sed -i -e "/-O2/d" CMakeLists.txt || die
121 + cmake_src_prepare
122 +}
123 +
124 +src_configure() {
125 + local mycmakeargs=(
126 + -DSIMCLIST_DEBUG=$(usex debug)
127 + -DSIMCLIST_THREADING=$(usex threads)
128 + -DSIMCLIST_NO_DUMPRESTORE=$(usex dump)
129 + -DSIMCLIST_ALLOW_LOCATIONBASED_HASHES=$(usex hash)
130 + )
131 + cmake_src_configure
132 +}
133 +
134 +src_compile(){
135 + cmake_src_compile
136 + if use doc; then
137 + doxygen || die "doxygen failed"
138 + fi
139 +}
140 +
141 +src_install() {
142 + doheader simclist.h
143 + dolib.so libsimclist.so
144 +
145 + if use doc ; then
146 + dodoc -r doc/html/*
147 + fi
148 +}