1 |
commit: 12b33666a2503adf77c62ebd47107c0f41152001 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 14:45:06 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 3 14:45:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b33666 |
7 |
|
8 |
app-crypt/tinyca: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild | 69 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 69 insertions(+) |
14 |
|
15 |
diff --git a/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild b/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..fc496ab |
18 |
--- /dev/null |
19 |
+++ b/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild |
20 |
@@ -0,0 +1,69 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit eutils |
28 |
+ |
29 |
+MY_P="${PN}${PV/./-}" |
30 |
+DESCRIPTION="Simple Perl/Tk GUI to manage a small certification authority" |
31 |
+HOMEPAGE="http://tinyca.sm-zone.net/" |
32 |
+SRC_URI="http://tinyca.sm-zone.net/${MY_P}.tar.bz2" |
33 |
+ |
34 |
+LICENSE="Artistic" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
37 |
+IUSE="libressl" |
38 |
+LANGS="en de cs es sv" |
39 |
+ |
40 |
+for X in ${LANGS} ; do |
41 |
+ IUSE="${IUSE} linguas_${X}" |
42 |
+done |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ !libressl? ( dev-libs/openssl:0= ) |
46 |
+ libressl? ( dev-libs/libressl:0= ) |
47 |
+ dev-perl/Locale-gettext |
48 |
+ >=virtual/perl-MIME-Base64-2.12 |
49 |
+ >=dev-perl/gtk2-perl-1.072" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ >=sys-apps/sed-4" |
52 |
+ |
53 |
+S="${WORKDIR}/${MY_P}" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ epatch "${FILESDIR}/${PN}-2.0.7.3-compositefix.patch" |
57 |
+ epatch "${FILESDIR}/${P}-openssl-1.patch" |
58 |
+ epatch "${FILESDIR}/${P}-perl-5.18.patch" |
59 |
+ sed -i -e 's:./lib:/usr/share/tinyca/lib:g' \ |
60 |
+ -e 's:./templates:/usr/share/tinyca/templates:g' \ |
61 |
+ -e 's:./locale:/usr/share/locale:g' "${S}/tinyca2" || die |
62 |
+} |
63 |
+ |
64 |
+src_compile() { |
65 |
+ emake -C po |
66 |
+} |
67 |
+ |
68 |
+locale_install() { |
69 |
+ insinto /usr/share/locale/$@/LC_MESSAGES/ |
70 |
+ doins locale/$@/LC_MESSAGES/tinyca2.mo |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ newbin tinyca2 tinyca |
75 |
+ insinto /usr/share/tinyca/lib |
76 |
+ doins lib/*.pm |
77 |
+ insinto /usr/share/tinyca/lib/GUI |
78 |
+ doins lib/GUI/*.pm |
79 |
+ insinto /usr/share/tinyca/templates |
80 |
+ doins templates/* |
81 |
+ insinto /usr/share/ |
82 |
+ strip-linguas ${LANGS} |
83 |
+ local l |
84 |
+ for l in ${LANGS}; do |
85 |
+ if [ "$l" != "en" ]; then |
86 |
+ use linguas_$l && locale_install $l |
87 |
+ fi |
88 |
+ done |
89 |
+} |