1 |
commit: f4f38f81a3243401e21d00e3da378d701aa1c17b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 20 18:22:27 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 18:22:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4f38f81 |
7 |
|
8 |
sys-apps/miscfiles: Rev bump to bump EAPI and Unicode data |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/6250 |
11 |
Bug: https://bugs.gentoo.org/622770 |
12 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
13 |
|
14 |
sys-apps/miscfiles/Manifest | 1 + |
15 |
sys-apps/miscfiles/miscfiles-1.5-r2.ebuild | 66 ++++++++++++++++++++++++++++++ |
16 |
2 files changed, 67 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/miscfiles/Manifest b/sys-apps/miscfiles/Manifest |
19 |
index 5dcbcbac297..383439d6ae0 100644 |
20 |
--- a/sys-apps/miscfiles/Manifest |
21 |
+++ b/sys-apps/miscfiles/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
+DIST UnicodeData-10.0.0.txt.xz 158456 SHA256 f90b97fad6c49a01c4c29738658fd4ea31fd234fcd0f63535574e59a30ef45f8 SHA512 85e8c7b33d71025a5f6f109e28010a5d5167f1aeb86c88eedd2e5ea5cecae3d1be741e5b0113a78566f51e8e15812a180a8c43c6b887385fec157d744c7a4a9c WHIRLPOOL a01456fb268f752eb9e12bd8106b74b656cc9efa956c4ef182f0c5a38bfb21140e0130a4c33bcc5b4905af75258e46ba8dc7bd5b4033677babadfdb4a4c65833 |
24 |
DIST UnicodeData-6.1.0.txt.xz 129972 SHA256 044c7f014c601ec4602d8e19c1541a952e2c7e30930c623acc65b1f45acb170a SHA512 9ada361d915f3883e673c6e55f351c7411dc970e180e7e0b05fef498c2f80a5a29bfd6c22513ff4b6b6c4c9fba5c77f0aca2dd54c7a76d3fa9b78623b1fdd93f WHIRLPOOL b052639f5ffe6acab1b875ee55aa917ed6f526deffce1f12f15530f1dd44d3cbb259516c40c725f7a35838d7ecb68f5452e099aef904d0763720cde87cebebf1 |
25 |
DIST miscfiles-1.5.tar.gz 1585293 SHA256 6aaaa8898b0f6dac18bcaa5492874a6cd1243ffbe7a6dd347ca8f3ec3642a500 SHA512 d7ab23a709539278cce59e0c32bfcb3a0f11dc52ef537e3823e72382962af7f4fedb8b957f39ff1da51a93a00e3c4f6ec29f7332d7879c77fd7f4ec0ee4f82aa WHIRLPOOL 3d134944fcf75231f682d05320ad9b198b99f9eb4c27a949b67e724cb3b16181afedd61e83bcdb672fb7df516d8cdc43310209a07108b35fdb40ea9025be297a |
26 |
|
27 |
diff --git a/sys-apps/miscfiles/miscfiles-1.5-r2.ebuild b/sys-apps/miscfiles/miscfiles-1.5-r2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..ca1d83243fd |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/miscfiles/miscfiles-1.5-r2.ebuild |
32 |
@@ -0,0 +1,66 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+UNI_PV="10.0.0" |
39 |
+DESCRIPTION="Miscellaneous files" |
40 |
+HOMEPAGE="https://savannah.gnu.org/projects/miscfiles/" |
41 |
+# https://www.unicode.org/Public/${UNI_PV}/ucd/UnicodeData.txt |
42 |
+SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz |
43 |
+ https://dev.gentoo.org/~whissi/dist/${PN}/UnicodeData-${UNI_PV}.txt.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2 unicode" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris" |
48 |
+IUSE="minimal" |
49 |
+ |
50 |
+# Collides with older versions/revisions |
51 |
+RDEPEND="!<sys-freebsd/freebsd-share-7.2-r1" |
52 |
+DEPEND="" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ mv "${WORKDIR}"/UnicodeData-${UNI_PV}.txt unicode || die |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf --datadir="${EPREFIX%/}"/usr/share/misc |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ emake install DESTDIR="${D}" || die |
66 |
+ dodoc NEWS ORIGIN README dict-README |
67 |
+ |
68 |
+ # not sure if this is still needed ... |
69 |
+ dodir /usr/share/dict |
70 |
+ cd "${ED%/}"/usr/share/misc |
71 |
+ mv $(awk '$1=="dictfiles"{$1="";$2="";print}' "${S}"/Makefile) ../dict/ || die |
72 |
+ cd ../dict |
73 |
+ ln -s web2 words || die |
74 |
+ ln -s web2a extra.words || die |
75 |
+ |
76 |
+ if use minimal ; then |
77 |
+ cd "${ED}"/usr/share/dict |
78 |
+ rm -f words extra.words |
79 |
+ gzip -9 * |
80 |
+ ln -s web2.gz words |
81 |
+ ln -s web2a.gz extra.words |
82 |
+ ln -s connectives{.gz,} |
83 |
+ ln -s propernames{.gz,} |
84 |
+ cd .. |
85 |
+ rm -r misc rfc |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ if [[ ${ROOT} == "/" ]] && type -P create-cracklib-dict >/dev/null ; then |
91 |
+ ebegin "Regenerating cracklib dictionary" |
92 |
+ create-cracklib-dict "${EPREFIX%/}"/usr/share/dict/* > /dev/null |
93 |
+ eend $? |
94 |
+ fi |
95 |
+ |
96 |
+ # pkg_postinst isn't supposed to fail |
97 |
+ return 0 |
98 |
+} |