commit:     26b29b664b76883bdbd84436ef4fce5bed128520
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 00:55:35 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 00:55:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b29b66

dev-util/icmake: version bump to 9.00.00

 dev-util/icmake/Manifest                      |  1 +
 dev-util/icmake/files/icmake-9.00.00-ar.patch | 32 ++++++++++++++++++++
 dev-util/icmake/icmake-9.00.00.ebuild         | 42 +++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/dev-util/icmake/Manifest b/dev-util/icmake/Manifest
index d5a647e..016ee6f 100644
--- a/dev-util/icmake/Manifest
+++ b/dev-util/icmake/Manifest
@@ -1,3 +1,4 @@
+DIST icmake-9.00.00.tar.gz 366238 SHA256 
2ba6ddf3c7ced5fd5e29ceffebfb283513610ac864c950bb4d3acb8f3300ad15 SHA512 
aad57cc5d1a609c1fe5706b4c263e3bf2d34208e8507b3d102ca666e446af829d9fea8ae1c12abc10f96bd4c567e718c05d9e3f09676444787c3ac9a31ccfbfa
 WHIRLPOOL 
fcc11b600d4f85e407337e426e91d62e04d17eee4a4902f4de4460a441bb48a174e32c40f3dcb395124b458481c4352be4bff1ff439612deef03f1d9fc333827
 DIST icmake_7.21.01.orig.tar.gz 330723 SHA256 
30a88a6bc0e0cdc6ad0dfe101834cb2babb70a8e72cfb4872b3f40b0d621a54b SHA512 
f5d8e363ccff63c4864d6aa6748e8ad16cb588e06e8a2ea2dbb80ca2642c30fae04649e9f5dd3b24103a53b81c5444e1c071007316504b656b9c3b822b16ada0
 WHIRLPOOL 
0f29495b5fde5c5dfaeaf1833f31bb016cf05421ee374d0d338fb8c6a3bf32331b2ca8cfd4d0e4a1ab13419134758640d9baa3a3fd43e9ab12fd5cfbbd89e68c
 DIST icmake_7.22.00.orig.tar.gz 331885 SHA256 
df60e28997dd6313e6fe5bdeb7f6d6030a5c9243c088f5034a4d3d4fa3ed7b04 SHA512 
ce5380e40315e003b124e2508d62777edf9ae4f2b2537ae1d9cdbbf220e8352134cc680d79bb0fbd973999208cded2075900fc5d9ce065f1dd8eee5d69c6ba17
 WHIRLPOOL 
90dac4bbc59359d0a3879dda98456c15e3e558f5ec540ff63dbdbf8635093b84b123730f731d242be41a9087983b09cfdefc8a45ea58b53376678e4f2c12b5f5
 DIST icmake_7.22.01.orig.tar.gz 331750 SHA256 
b522e7937e9d4f0bec738dfce371673e3c4a8bc9f4d209a51631e5ed59ba66c7 SHA512 
a17dac0da186202ec5f5962a42963709ebc60f006cea003532b8709242d9e369e71fdc86fffc75ad82620a2c420a8f80c138d31e6570d0055cdfa0b69b63ca3a
 WHIRLPOOL 
c20084b28b212739a70f60b5a790461ae3e4b50c9cf9cd37ae50025f835fe4575c927dc5f2335d608436e2f51fb21fdc3eb57ce3ee2881915edec82d2964497e

diff --git a/dev-util/icmake/files/icmake-9.00.00-ar.patch 
b/dev-util/icmake/files/icmake-9.00.00-ar.patch
new file mode 100644
index 0000000..0eff669
--- /dev/null
+++ b/dev-util/icmake/files/icmake-9.00.00-ar.patch
@@ -0,0 +1,32 @@
+--- icmake/bootstrap/flags
++++ icmake/bootstrap/flags
+@@ -14,3 +14,7 @@
+ if [ "${CC}" == "" ] ; then 
+     CC="gcc"
+ fi
++
++if [ "${AR}" == "" ] ; then 
++    CC="ar"
++fi
+--- icmake/bootstrap/functions
++++ icmake/bootstrap/functions
+@@ -35,7 +35,7 @@
+ 
+     echo -n .
+ 
+-    try ar crs ../tmp/lib${program}.a */*.o
++    try ${AR} crs ../tmp/lib${program}.a */*.o
+ 
+     echo -n .
+ 
+--- icmake/rss/icm_bootstrap
++++ icmake/rss/icm_bootstrap
+@@ -8,7 +8,7 @@
+ echo -n .
+ try ${CC} -c ${CFLAGS} *.c
+ echo -n .
+-try ar rs ../tmp/libicrss.a *.o
++try ${AR} rs ../tmp/libicrss.a *.o
+ echo -n .
+ rm *.o
+ echo .

diff --git a/dev-util/icmake/icmake-9.00.00.ebuild 
b/dev-util/icmake/icmake-9.00.00.ebuild
new file mode 100644
index 0000000..4953897
--- /dev/null
+++ b/dev-util/icmake/icmake-9.00.00.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Hybrid between a make utility and a shell scripting language"
+HOMEPAGE="https://fbb-git.github.io/icmake/ https://github.com/fbb-git/icmake";
+SRC_URI="https://github.com/fbb-git/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S=${WORKDIR}/${P}/${PN}
+
+src_prepare() {
+       local PATCHES=( "${FILESDIR}"/${P}-ar.patch )
+
+       sed -e "/^#define LIBDIR/s/lib/$(get_libdir)/" \
+               -e "/^#define DOCDIR/s/${PN}/${PF}/" \
+               -e "/^#define DOCDOCDIR/s/${PN}-doc/${PF}/" \
+               -i INSTALL.im || die
+
+       tc-export AR CC
+
+       default
+}
+
+src_configure() {
+       ./icm_prepare "${EROOT}" || die
+}
+
+src_compile() {
+       ./icm_bootstrap "${EROOT}" || die
+}
+
+src_install() {
+       ./icm_install all "${ED}" || die
+}

Reply via email to