Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/c-intercal/, dev-lang/c-intercal/files/
Date: Fri, 16 Aug 2019 09:52:43
Message-Id: 1565949070.e67879f27d1923d82394822b26149d142d0248f0.ulm@gentoo
1 commit: e67879f27d1923d82394822b26149d142d0248f0
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 16 09:50:35 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 16 09:51:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e67879f2
7
8 dev-lang/c-intercal: Bump to version 0.31.
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 dev-lang/c-intercal/Manifest | 1 +
14 dev-lang/c-intercal/c-intercal-31.0.ebuild | 78 ++++++++++++++++++++++
15 .../c-intercal/files/c-intercal-31.0-version.patch | 11 +++
16 3 files changed, 90 insertions(+)
17
18 diff --git a/dev-lang/c-intercal/Manifest b/dev-lang/c-intercal/Manifest
19 index a61edfb1d68..16c9559dd0f 100644
20 --- a/dev-lang/c-intercal/Manifest
21 +++ b/dev-lang/c-intercal/Manifest
22 @@ -1 +1,2 @@
23 DIST intercal-0.30.tar.gz 930759 BLAKE2B c8c9b77c31901da8f7dbd5a76c2d6fa900962c69f4ca56835f750f40370d5161f6311cbe5473cdb7342772c1cc5317e51d91e174cb16985565adacd001fc1f29 SHA512 e82f52082a73e0eb6116026f78fdcc38369f54af828b9ed0d3ca6ed6c40550bfa81db4ca7c4d09015b5db5104a1c06229cfed52e1d202c3a7443f933fbcc0498
24 +DIST intercal-0.31.tar.gz 940950 BLAKE2B 9a23229b1d7f0524b164a4b66bcab4fdf67a04ba1e411365a46a90d646867fe92d6e328935b406673809535a895becde934fb6cf2e8380943eb8f19473fcedab SHA512 ca5c10be880ce2470d7dd3404fa5a314bd7bcab45cf4908f7108eb1baa50339b876e135251d991527881b564027c63dc38d74a154cbd00d606261013d2b01262
25
26 diff --git a/dev-lang/c-intercal/c-intercal-31.0.ebuild b/dev-lang/c-intercal/c-intercal-31.0.ebuild
27 new file mode 100644
28 index 00000000000..53c680992b5
29 --- /dev/null
30 +++ b/dev-lang/c-intercal/c-intercal-31.0.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools elisp-common
38 +
39 +# C-INTERCAL uses minor-major ordering of version components and
40 +# negative version numbers. We map version components -1, -2, ...
41 +# to 65535, 65534, ..., and subtract one from the next component.
42 +# For example, upstream version 0.28 is mapped to Gentoo version 28.0
43 +# and 0.-2.0.29 is mapped to 28.65535.65534.0.
44 +#get_intercal_version() {
45 +# local i=.${1:-${PV}} j k c=0
46 +# while [[ ${i} ]]; do
47 +# (( k = ${i##*.} + c ))
48 +# (( (c = (k >= 32768)) && (k -= 65536) ))
49 +# i=${i%.*}
50 +# j=${j}.${k}
51 +# done
52 +# echo ${j#.}
53 +#}
54 +
55 +MY_P="${PN#c-}-$(ver_cut 2).$(ver_cut 1)"
56 +DESCRIPTION="C-INTERCAL - INTERCAL to binary (via C) compiler"
57 +HOMEPAGE="http://www.catb.org/~esr/intercal/
58 + https://gitlab.com/esr/intercal"
59 +SRC_URI="http://www.catb.org/~esr/intercal/${MY_P}.tar.gz"
60 +
61 +LICENSE="GPL-2+ FDL-1.2+"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~x86"
64 +IUSE="emacs examples"
65 +
66 +RDEPEND="emacs? ( virtual/emacs )"
67 +BDEPEND="${RDEPEND}
68 + sys-devel/flex
69 + virtual/yacc"
70 +
71 +S="${WORKDIR}/${MY_P}"
72 +SITEFILE="50${PN}-gentoo.el"
73 +
74 +src_prepare() {
75 + eapply "${FILESDIR}"/${P}-version.patch
76 + eapply_user
77 + eautoreconf
78 +}
79 +
80 +src_compile() {
81 + emake
82 +
83 + if use emacs; then
84 + elisp-compile etc/intercal.el
85 + fi
86 +}
87 +
88 +src_install() {
89 + emake DESTDIR="${D}" install
90 + dodoc BUGS NEWS HISTORY README doc/THEORY.txt
91 +
92 + if use emacs; then
93 + elisp-install ${PN} etc/intercal.{el,elc}
94 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
95 + fi
96 +
97 + if use examples; then
98 + insinto /usr/share/doc/${PF}
99 + doins -r pit
100 + fi
101 +}
102 +
103 +pkg_postinst() {
104 + use emacs && elisp-site-regen
105 +}
106 +
107 +pkg_postrm() {
108 + use emacs && elisp-site-regen
109 +}
110
111 diff --git a/dev-lang/c-intercal/files/c-intercal-31.0-version.patch b/dev-lang/c-intercal/files/c-intercal-31.0-version.patch
112 new file mode 100644
113 index 00000000000..85ce41837f5
114 --- /dev/null
115 +++ b/dev-lang/c-intercal/files/c-intercal-31.0-version.patch
116 @@ -0,0 +1,11 @@
117 +--- intercal-0.31-orig/configure.ac
118 ++++ intercal-0.31/configure.ac
119 +@@ -14,7 +14,7 @@
120 + subdir-objects no-texinfo.tex -Wall -Wno-override])
121 +
122 + dnl Information about this version of INTERCAL.
123 +-PACKAGE_VERSION=0.30
124 ++PACKAGE_VERSION=0.31
125 + REPOSITORY_URL=`sed -n <control '/XBS-Repository-URL: */s///p'`
126 +
127 + dnl Checks for programs.