summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2012-08-06 17:27:55 +0000
committerLars Wendler <polynomial-c@gentoo.org>2012-08-06 17:27:55 +0000
commitbce6c6575b034215cb742c98d0884798d1f96322 (patch)
tree5d007b3b2c3643e077780a09b9900d5488d75ad7 /dev-util
parentCleanup. (diff)
downloadgentoo-2-bce6c6575b034215cb742c98d0884798d1f96322.tar.gz
gentoo-2-bce6c6575b034215cb742c98d0884798d1f96322.tar.bz2
gentoo-2-bce6c6575b034215cb742c98d0884798d1f96322.zip
New snapshot. Needed for the upcoming virtualbox-4.2 series
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/kbuild/ChangeLog9
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch13
-rw-r--r--dev-util/kbuild/kbuild-0.1.9998_pre20120806.ebuild57
3 files changed, 78 insertions, 1 deletions
diff --git a/dev-util/kbuild/ChangeLog b/dev-util/kbuild/ChangeLog
index 9b4e6ee71a3a..fb06358b20ac 100644
--- a/dev-util/kbuild/ChangeLog
+++ b/dev-util/kbuild/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/kbuild
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/ChangeLog,v 1.29 2012/06/20 20:04:41 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/ChangeLog,v 1.30 2012/08/06 17:27:55 polynomial-c Exp $
+
+*kbuild-0.1.9998_pre20120806 (06 Aug 2012)
+
+ 06 Aug 2012; Lars Wendler <polynomial-c@gentoo.org>
+ +kbuild-0.1.9998_pre20120806.ebuild,
+ +files/kbuild-0.1.9998_pre20120806-qa.patch:
+ New snapshot. Needed for the upcoming virtualbox-4.2 series.
*kbuild-0.1.9998_pre20110817-r1 (20 Jun 2012)
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch b/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch
new file mode 100644
index 000000000000..9b0df4204e35
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch
@@ -0,0 +1,13 @@
+--- kBuild-0.1.9998-pre20120806/src/sed/lib/utils.c
++++ kBuild-0.1.9998-pre20120806/src/sed/lib/utils.c
+@@ -35,6 +35,10 @@
+ # include <stdlib.h>
+ #endif /* HAVE_STDLIB_H */
+
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif /* HAVE_UNISTD_H */
++
+ #include "utils.h"
+
+ const char *myname;
diff --git a/dev-util/kbuild/kbuild-0.1.9998_pre20120806.ebuild b/dev-util/kbuild/kbuild-0.1.9998_pre20120806.ebuild
new file mode 100644
index 000000000000..7318c90be041
--- /dev/null
+++ b/dev-util/kbuild/kbuild-0.1.9998_pre20120806.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/kbuild-0.1.9998_pre20120806.ebuild,v 1.1 2012/08/06 17:27:55 polynomial-c Exp $
+
+EAPI=4
+
+WANT_AUTOMAKE=1.9
+
+inherit eutils autotools
+
+MY_P=kBuild-${PV/_/-}-src
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
+SRC_URI="http://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-devel/flex
+ sys-devel/gettext
+ virtual/yacc"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-src}
+
+src_prepare() {
+ rm -rf "${S}/kBuild/bin"
+
+ epatch "${FILESDIR}/${PN}-unknown-configure-opt.patch" \
+ "${FILESDIR}/${PN}-glibc-2.10.patch" \
+ "${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20120806-qa.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gold.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gcc-4.7.patch"
+
+ cd "${S}/src/kmk"
+ eautoreconf
+ cd "${S}/src/sed"
+ eautoreconf
+
+ sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
+ -i "${S}"/Config.kmk || die #332225
+}
+
+src_compile() {
+ kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true \
+ || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \
+ || die "install failed"
+}