public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-lang/c-intercal/, dev-lang/c-intercal/files/
@ 2016-10-28 21:17 Ulrich Müller
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Müller @ 2016-10-28 21:17 UTC (permalink / raw
  To: gentoo-commits

commit:     98522ed0cdd4b50881fd4e5ba2fac150a7b030f7
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 28 21:16:47 2016 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Oct 28 21:16:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98522ed0

dev-lang/c-intercal: Fix package version in configure.

Package-Manager: portage-2.3.2

 dev-lang/c-intercal/c-intercal-30.0.ebuild              |  8 +++++++-
 dev-lang/c-intercal/files/c-intercal-30.0-version.patch | 11 +++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/dev-lang/c-intercal/c-intercal-30.0.ebuild b/dev-lang/c-intercal/c-intercal-30.0.ebuild
index 87a8bea..8c0b34d 100644
--- a/dev-lang/c-intercal/c-intercal-30.0.ebuild
+++ b/dev-lang/c-intercal/c-intercal-30.0.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=6
 
-inherit elisp-common
+inherit autotools elisp-common
 
 # C-INTERCAL uses minor-major ordering of version components and
 # negative version numbers. We map version components -1, -2, ...
@@ -39,6 +39,12 @@ RDEPEND="${DEPEND}"
 S="${WORKDIR}/${MY_PN}-${MY_PV}"
 SITEFILE="50${PN}-gentoo.el"
 
+src_prepare() {
+	eapply "${FILESDIR}"/${P}-version.patch
+	eapply_user
+	eautoreconf
+}
+
 src_compile() {
 	emake
 

diff --git a/dev-lang/c-intercal/files/c-intercal-30.0-version.patch b/dev-lang/c-intercal/files/c-intercal-30.0-version.patch
new file mode 100644
index 00000000..3fe8d02
--- /dev/null
+++ b/dev-lang/c-intercal/files/c-intercal-30.0-version.patch
@@ -0,0 +1,11 @@
+--- intercal-0.30-orig/configure.ac
++++ intercal-0.30/configure.ac
+@@ -14,7 +14,7 @@
+ 		  subdir-objects no-texinfo.tex -Wall -Wno-override])
+ 
+ dnl Information about this version of INTERCAL.
+-PACKAGE_VERSION=0.29
++PACKAGE_VERSION=0.30
+ 
+ dnl Checks for programs.
+ AC_PROG_YACC


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lang/c-intercal/, dev-lang/c-intercal/files/
@ 2017-01-08 17:46 Ulrich Müller
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Müller @ 2017-01-08 17:46 UTC (permalink / raw
  To: gentoo-commits

commit:     2a3bea69c7abcaf29a587df887d7d78e43cb8cc4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  8 17:45:59 2017 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  8 17:45:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a3bea69

dev-lang/c-intercal: Workaround for flex-2.6.3.

Also add missing build-time dependencies on sys-devel/flex and
virtual/yacc.

Bug: 604848

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/c-intercal/c-intercal-30.0.ebuild             |  9 ++++++---
 dev-lang/c-intercal/files/c-intercal-30.0-yywrap.patch | 17 +++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/dev-lang/c-intercal/c-intercal-30.0.ebuild b/dev-lang/c-intercal/c-intercal-30.0.ebuild
index 8c0b34d..374b592 100644
--- a/dev-lang/c-intercal/c-intercal-30.0.ebuild
+++ b/dev-lang/c-intercal/c-intercal-30.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -33,14 +33,17 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="emacs examples"
 
-DEPEND="emacs? ( virtual/emacs )"
-RDEPEND="${DEPEND}"
+RDEPEND="emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+	sys-devel/flex
+	virtual/yacc"
 
 S="${WORKDIR}/${MY_PN}-${MY_PV}"
 SITEFILE="50${PN}-gentoo.el"
 
 src_prepare() {
 	eapply "${FILESDIR}"/${P}-version.patch
+	eapply "${FILESDIR}"/${P}-yywrap.patch
 	eapply_user
 	eautoreconf
 }

diff --git a/dev-lang/c-intercal/files/c-intercal-30.0-yywrap.patch b/dev-lang/c-intercal/files/c-intercal-30.0-yywrap.patch
new file mode 100644
index 00000000..9d46a91
--- /dev/null
+++ b/dev-lang/c-intercal/files/c-intercal-30.0-yywrap.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/604848
+
+--- intercal-0.30-orig/src/lexer.l
++++ intercal-0.30/src/lexer.l
+@@ -38,12 +38,10 @@
+ /*#undef wchar_t*/
+ /*#define wchar_t unsigned char*/
+ 
+-#ifndef yywrap
+ static int yywrap(void)
+ {
+     return 1;
+ }
+-#endif /* yywrap */
+ 
+ int 	iyylineno = 1;
+ 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lang/c-intercal/, dev-lang/c-intercal/files/
@ 2019-08-16  9:52 Ulrich Müller
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Müller @ 2019-08-16  9:52 UTC (permalink / raw
  To: gentoo-commits

commit:     e67879f27d1923d82394822b26149d142d0248f0
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 16 09:50:35 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Aug 16 09:51:10 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e67879f2

dev-lang/c-intercal: Bump to version 0.31.

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 dev-lang/c-intercal/Manifest                       |  1 +
 dev-lang/c-intercal/c-intercal-31.0.ebuild         | 78 ++++++++++++++++++++++
 .../c-intercal/files/c-intercal-31.0-version.patch | 11 +++
 3 files changed, 90 insertions(+)

diff --git a/dev-lang/c-intercal/Manifest b/dev-lang/c-intercal/Manifest
index a61edfb1d68..16c9559dd0f 100644
--- a/dev-lang/c-intercal/Manifest
+++ b/dev-lang/c-intercal/Manifest
@@ -1 +1,2 @@
 DIST intercal-0.30.tar.gz 930759 BLAKE2B c8c9b77c31901da8f7dbd5a76c2d6fa900962c69f4ca56835f750f40370d5161f6311cbe5473cdb7342772c1cc5317e51d91e174cb16985565adacd001fc1f29 SHA512 e82f52082a73e0eb6116026f78fdcc38369f54af828b9ed0d3ca6ed6c40550bfa81db4ca7c4d09015b5db5104a1c06229cfed52e1d202c3a7443f933fbcc0498
+DIST intercal-0.31.tar.gz 940950 BLAKE2B 9a23229b1d7f0524b164a4b66bcab4fdf67a04ba1e411365a46a90d646867fe92d6e328935b406673809535a895becde934fb6cf2e8380943eb8f19473fcedab SHA512 ca5c10be880ce2470d7dd3404fa5a314bd7bcab45cf4908f7108eb1baa50339b876e135251d991527881b564027c63dc38d74a154cbd00d606261013d2b01262

diff --git a/dev-lang/c-intercal/c-intercal-31.0.ebuild b/dev-lang/c-intercal/c-intercal-31.0.ebuild
new file mode 100644
index 00000000000..53c680992b5
--- /dev/null
+++ b/dev-lang/c-intercal/c-intercal-31.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools elisp-common
+
+# C-INTERCAL uses minor-major ordering of version components and
+# negative version numbers. We map version components -1, -2, ...
+# to 65535, 65534, ..., and subtract one from the next component.
+# For example, upstream version 0.28 is mapped to Gentoo version 28.0
+# and 0.-2.0.29 is mapped to 28.65535.65534.0.
+#get_intercal_version() {
+#	local i=.${1:-${PV}} j k c=0
+#	while [[ ${i} ]]; do
+#		(( k = ${i##*.} + c ))
+#		(( (c = (k >= 32768)) && (k -= 65536) ))
+#		i=${i%.*}
+#		j=${j}.${k}
+#	done
+#	echo ${j#.}
+#}
+
+MY_P="${PN#c-}-$(ver_cut 2).$(ver_cut 1)"
+DESCRIPTION="C-INTERCAL - INTERCAL to binary (via C) compiler"
+HOMEPAGE="http://www.catb.org/~esr/intercal/
+	https://gitlab.com/esr/intercal"
+SRC_URI="http://www.catb.org/~esr/intercal/${MY_P}.tar.gz"
+
+LICENSE="GPL-2+ FDL-1.2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs examples"
+
+RDEPEND="emacs? ( virtual/emacs )"
+BDEPEND="${RDEPEND}
+	sys-devel/flex
+	virtual/yacc"
+
+S="${WORKDIR}/${MY_P}"
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+	eapply "${FILESDIR}"/${P}-version.patch
+	eapply_user
+	eautoreconf
+}
+
+src_compile() {
+	emake
+
+	if use emacs; then
+		elisp-compile etc/intercal.el
+	fi
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	dodoc BUGS NEWS HISTORY README doc/THEORY.txt
+
+	if use emacs; then
+		elisp-install ${PN} etc/intercal.{el,elc}
+		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+	fi
+
+	if use examples; then
+		insinto /usr/share/doc/${PF}
+		doins -r pit
+	fi
+}
+
+pkg_postinst() {
+	use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+	use emacs && elisp-site-regen
+}

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
new file mode 100644
index 00000000000..85ce41837f5
--- /dev/null
+++ b/dev-lang/c-intercal/files/c-intercal-31.0-version.patch
@@ -0,0 +1,11 @@
+--- intercal-0.31-orig/configure.ac
++++ intercal-0.31/configure.ac
+@@ -14,7 +14,7 @@
+ 		  subdir-objects no-texinfo.tex -Wall -Wno-override])
+ 
+ dnl Information about this version of INTERCAL.
+-PACKAGE_VERSION=0.30
++PACKAGE_VERSION=0.31
+ REPOSITORY_URL=`sed -n <control '/XBS-Repository-URL: */s///p'`
+ 
+ dnl Checks for programs.


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-16  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-28 21:17 [gentoo-commits] repo/gentoo:master commit in: dev-lang/c-intercal/, dev-lang/c-intercal/files/ Ulrich Müller
  -- strict thread matches above, loose matches on Subject: below --
2017-01-08 17:46 Ulrich Müller
2019-08-16  9:52 Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox