Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/stfl/
Date: Fri, 22 Sep 2017 05:39:18
Message-Id: 1506058723.e78ab16073e836300ad095ae935823ee6b159e40.radhermit@gentoo
1 commit: e78ab16073e836300ad095ae935823ee6b159e40
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 22 05:38:43 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 22 05:38:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e78ab160
7
8 dev-libs/stfl: remove old
9
10 dev-libs/stfl/Manifest | 1 -
11 dev-libs/stfl/stfl-0.23.ebuild | 118 -----------------------------------------
12 2 files changed, 119 deletions(-)
13
14 diff --git a/dev-libs/stfl/Manifest b/dev-libs/stfl/Manifest
15 index 285d8a9567e..5de8895a917 100644
16 --- a/dev-libs/stfl/Manifest
17 +++ b/dev-libs/stfl/Manifest
18 @@ -1,2 +1 @@
19 -DIST stfl-0.23.tar.gz 43941 SHA256 e75ed8427905ad50faf43ed5fefd0cf7b16ee0c1ca87e15d33e360bb92aedfde SHA512 02a7323740364acac4063d002775d04358bc9f98d8df4d83ec9dcdc9d9f46840be1cab0d2526c8cdc7a441784ec95100792edd1bbd1fa2365ce20ef4141a0e6e WHIRLPOOL 6331623402ae5a7df97df6c135b043e8c9b327de78ab2916e122489bdf1108871aef7772c016b5f567f8a00dca1f4274fce4add3d2d9a625f5aca911301c9730
20 DIST stfl-0.24.tar.gz 45585 SHA256 d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090 SHA512 95df4574b1bc32d795751156dc5b93afbca3ba241607a3a55210c89dda61b9a26ad574bb5f729a0158c9052235dbf63d6c58b38e7f1061d14ab7062af6150fa0 WHIRLPOOL 76545f41802a5f019ee44598368958a13551c3ed70747f45da88d61bc9ba882e514659b3c8f47805a7c199229078abc22ac5a79680b803244bfe8e29a081f10e
21
22 diff --git a/dev-libs/stfl/stfl-0.23.ebuild b/dev-libs/stfl/stfl-0.23.ebuild
23 deleted file mode 100644
24 index 212ff7317c5..00000000000
25 --- a/dev-libs/stfl/stfl-0.23.ebuild
26 +++ /dev/null
27 @@ -1,118 +0,0 @@
28 -# Copyright 1999-2017 Gentoo Foundation
29 -# Distributed under the terms of the GNU General Public License v2
30 -
31 -EAPI=5
32 -PYTHON_COMPAT=( python{2_7,3_4} )
33 -GENTOO_DEPEND_ON_PERL=no
34 -inherit eutils multilib perl-module python-r1 toolchain-funcs
35 -
36 -DESCRIPTION="A library which implements a curses-based widget set for text terminals"
37 -HOMEPAGE="http://www.clifford.at/stfl/"
38 -SRC_URI="http://www.clifford.at/${PN}/${P}.tar.gz"
39 -
40 -LICENSE="LGPL-3"
41 -SLOT="0"
42 -KEYWORDS="amd64 ppc x86"
43 -IUSE="examples perl python ruby static-libs"
44 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
45 -
46 -RDEPEND="
47 - sys-libs/ncurses:0=[unicode]
48 - perl? ( dev-lang/perl:= )
49 - ruby? ( dev-lang/ruby:* )
50 - python? ( ${PYTHON_DEPS} )
51 -"
52 -DEPEND="${RDEPEND}
53 - perl? ( dev-lang/swig )
54 - python? ( >=dev-lang/swig-1.3.40 )
55 - ruby? ( dev-lang/swig )
56 -"
57 -
58 -src_prepare() {
59 - sed -i \
60 - -e 's/-Os -ggdb//' \
61 - -e 's/^\(all:.*\) example/\1/' \
62 - -e 's/$(CC) -shared/$(CC) $(LDFLAGS) -shared/' \
63 - -e 's/ -o $@ $(LDLIBS) $^/ $^ $(LDLIBS) -o $@/' \
64 - -e 's/-lncursesw/-lncursesw -pthread/' \
65 - Makefile || die "sed failed"
66 -
67 - if ! use static-libs ; then
68 - sed -i -e "/install .* libstfl.a/d" Makefile || die
69 - fi
70 -
71 - epatch "${FILESDIR}"/${PN}-0.21-python.patch
72 - epatch "${FILESDIR}"/${PN}-0.22-soname-symlink.patch
73 - epatch "${FILESDIR}"/${PN}-0.22-ruby-sharedlib.patch
74 -
75 - if use perl ; then
76 - echo "FOUND_PERL5=1" >> Makefile.cfg
77 - else
78 - echo "FOUND_PERL5=0" >> Makefile.cfg
79 - fi
80 -
81 - if use ruby ; then
82 - echo "FOUND_RUBY=1" >> Makefile.cfg
83 - else
84 - echo "FOUND_RUBY=0" >> Makefile.cfg
85 - fi
86 -
87 - echo "FOUND_PYTHON=0" >> Makefile.cfg
88 -}
89 -
90 -src_configure() { :; }
91 -
92 -src_compile() {
93 - emake CC="$(tc-getCC)"
94 -
95 - if use python ; then
96 - local BUILD_DIR="${S}/python"
97 - python_copy_sources
98 -
99 - # Based on code from python/Makefile.snippet.
100 - building() {
101 - pushd "${BUILD_DIR}" &>/dev/null || die
102 - echo swig -python -threads stfl.i
103 - swig -python -threads stfl.i || die
104 - echo "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -shared -pthread -fPIC stfl_wrap.c -I$(python_get_includedir) -I.. ../libstfl.so.${PV} -lncursesw -o _stfl.so
105 - "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -shared -pthread -fPIC stfl_wrap.c -I$(python_get_includedir) -I.. ../libstfl.so.${PV} -lncursesw -o _stfl.so || die
106 - popd &>/dev/null || die
107 - }
108 - python_foreach_impl building
109 - fi
110 -}
111 -
112 -src_install() {
113 - emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install
114 -
115 - if use python ; then
116 - local BUILD_DIR="${S}/python"
117 -
118 - installation() {
119 - pushd "${BUILD_DIR}" &>/dev/null || die
120 - python_domodule stfl.py _stfl.so
121 - popd &>/dev/null || die
122 - }
123 - python_foreach_impl installation
124 - fi
125 -
126 - dodoc README
127 -
128 - local exdir="/usr/share/doc/${PF}/examples"
129 - if use examples ; then
130 - insinto ${exdir}
131 - doins example.{c,stfl}
132 - insinto ${exdir}/python
133 - doins python/example.py
134 - if use perl ; then
135 - insinto ${exdir}/perl
136 - doins perl5/example.pl
137 - fi
138 - if use ruby ; then
139 - insinto ${exdir}/ruby
140 - doins ruby/example.rb
141 - fi
142 - fi
143 -
144 - perl_delete_localpod
145 -}