dev-lang/c-intercal: Fix package version in configure.
authorUlrich Müller <ulm@gentoo.org>
Fri, 28 Oct 2016 21:16:47 +0000 (23:16 +0200)
committerUlrich Müller <ulm@gentoo.org>
Fri, 28 Oct 2016 21:16:47 +0000 (23:16 +0200)
Package-Manager: portage-2.3.2

dev-lang/c-intercal/c-intercal-30.0.ebuild
dev-lang/c-intercal/files/c-intercal-30.0-version.patch [new file with mode: 0644]

index 87a8beac9a5d5c06a0158811e820f1163cf24d9c..8c0b34dc77386a6638647fd13636330648049d31 100644 (file)
@@ -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 (file)
index 0000000..3fe8d02
--- /dev/null
@@ -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