1 |
commit: a1a5953bc856185f940d2c05c69e20269d8408bd |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 28 21:03:04 2016 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 28 21:03:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1a5953b |
7 |
|
8 |
dev-lang/c-intercal: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-lang/c-intercal/Manifest | 1 + |
13 |
dev-lang/c-intercal/c-intercal-30.0.ebuild | 71 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/c-intercal/Manifest b/dev-lang/c-intercal/Manifest |
17 |
index dbf4bee..f8b7ba0 100644 |
18 |
--- a/dev-lang/c-intercal/Manifest |
19 |
+++ b/dev-lang/c-intercal/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST intercal-0.29.pax.gz 1003800 SHA256 fba1678bdd058350742fad2f3f0673bcea9f4c8add761855a67d8ada6650950b SHA512 0789278b334f65b6e2034493cf08b26a9885e7aec09072c9d9d3d2796b2c6b09f13a856afea1f77f6c6aac0f386b0a76e35ddd9c87584386f3b8a0ad30bddd31 WHIRLPOOL 9039db79d0ecfd17abdd2ba4788d5e812d4fc5db1fab3ba554567ec3d08cd7091408d054903e8a59dbf77fc78f5408dfc1608eaac0b10e1bf76c32b3a92e300d |
22 |
+DIST intercal-0.30.tar.gz 930759 SHA256 b38b62a61a3cb5b0d3ce9f2d09c97bd74796979d532615073025a7fff6be1715 SHA512 e82f52082a73e0eb6116026f78fdcc38369f54af828b9ed0d3ca6ed6c40550bfa81db4ca7c4d09015b5db5104a1c06229cfed52e1d202c3a7443f933fbcc0498 WHIRLPOOL b76542b81d8322c5791a30573e0b7efdd7793a298970b29f074e49fa061e3a28f38fdbf7732f74a77d940e8167650182d3366f657ed525d079feb0c3d47d7dc2 |
23 |
|
24 |
diff --git a/dev-lang/c-intercal/c-intercal-30.0.ebuild b/dev-lang/c-intercal/c-intercal-30.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..87a8bea |
27 |
--- /dev/null |
28 |
+++ b/dev-lang/c-intercal/c-intercal-30.0.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit elisp-common |
37 |
+ |
38 |
+# C-INTERCAL uses minor-major ordering of version components and |
39 |
+# negative version numbers. We map version components -1, -2, ... |
40 |
+# to 65535, 65534, ..., and subtract one from the next component. |
41 |
+# For example, upstream version 0.28 is mapped to Gentoo version 28.0 |
42 |
+# and 0.-2.0.29 is mapped to 28.65535.65534.0. |
43 |
+get_intercal_version() { |
44 |
+ local i=.${1:-${PV}} j k c=0 |
45 |
+ while [[ ${i} ]]; do |
46 |
+ (( k = ${i##*.} + c )) |
47 |
+ (( (c = (k >= 32768)) && (k -= 65536) )) |
48 |
+ i=${i%.*} |
49 |
+ j=${j}.${k} |
50 |
+ done |
51 |
+ echo ${j#.} |
52 |
+} |
53 |
+ |
54 |
+MY_PN="${PN#c-}" |
55 |
+MY_PV="$(get_intercal_version)" |
56 |
+DESCRIPTION="C-INTERCAL - INTERCAL to binary (via C) compiler" |
57 |
+HOMEPAGE="http://www.catb.org/~esr/intercal/" |
58 |
+SRC_URI="http://www.catb.org/~esr/intercal/${MY_PN}-${MY_PV}.tar.gz" |
59 |
+ |
60 |
+LICENSE="GPL-2+ FDL-1.2+" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+IUSE="emacs examples" |
64 |
+ |
65 |
+DEPEND="emacs? ( virtual/emacs )" |
66 |
+RDEPEND="${DEPEND}" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_PN}-${MY_PV}" |
69 |
+SITEFILE="50${PN}-gentoo.el" |
70 |
+ |
71 |
+src_compile() { |
72 |
+ emake |
73 |
+ |
74 |
+ if use emacs; then |
75 |
+ elisp-compile etc/intercal.el |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ emake DESTDIR="${D}" install |
81 |
+ dodoc BUGS NEWS HISTORY README doc/THEORY.txt |
82 |
+ |
83 |
+ if use emacs; then |
84 |
+ elisp-install ${PN} etc/intercal.{el,elc} |
85 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
86 |
+ fi |
87 |
+ |
88 |
+ if use examples; then |
89 |
+ insinto /usr/share/doc/${PF} |
90 |
+ doins -r pit |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ use emacs && elisp-site-regen |
96 |
+} |
97 |
+ |
98 |
+pkg_postrm() { |
99 |
+ use emacs && elisp-site-regen |
100 |
+} |