summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-block/di/ChangeLog8
-rw-r--r--sys-block/di/di-4.31.ebuild31
-rw-r--r--sys-block/di/files/di-4.31-mkdir.patch13
3 files changed, 51 insertions, 1 deletions
diff --git a/sys-block/di/ChangeLog b/sys-block/di/ChangeLog
index 2be16b103430..d899e184eee2 100644
--- a/sys-block/di/ChangeLog
+++ b/sys-block/di/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-block/di
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/di/ChangeLog,v 1.32 2011/10/01 20:30:19 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/di/ChangeLog,v 1.33 2011/11/21 01:51:59 radhermit Exp $
+
+*di-4.31 (21 Nov 2011)
+
+ 21 Nov 2011; Tim Harder <radhermit@gentoo.org> +di-4.31.ebuild,
+ +files/di-4.31-mkdir.patch:
+ Version bump.
*di-4.29 (01 Oct 2011)
diff --git a/sys-block/di/di-4.31.ebuild b/sys-block/di/di-4.31.ebuild
new file mode 100644
index 000000000000..80ddfa0b712e
--- /dev/null
+++ b/sys-block/di/di-4.31.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/di/di-4.31.ebuild,v 1.1 2011/11/21 01:51:59 radhermit Exp $
+
+EAPI=4
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Disk Information Utility"
+HOMEPAGE="http://www.gentoo.com/di/"
+SRC_URI="http://www.gentoo.com/di/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-mkdir.patch
+}
+
+src_compile() {
+ emake prefix=/usr CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake install prefix="${D}/usr"
+ # default symlink is broken
+ dosym di /usr/bin/mi
+ dodoc README
+}
diff --git a/sys-block/di/files/di-4.31-mkdir.patch b/sys-block/di/files/di-4.31-mkdir.patch
new file mode 100644
index 000000000000..d21ea28a936e
--- /dev/null
+++ b/sys-block/di/files/di-4.31-mkdir.patch
@@ -0,0 +1,13 @@
+--- di-4.31/Makefile.orig
++++ di-4.31/Makefile
+@@ -134,8 +134,8 @@
+
+ .PHONY: install-prog
+ install-prog:
+- $(TEST) -d $(INSTALL_DIR) || $(MKDIR) $(INSTALL_DIR)
+- $(TEST) -d $(INSTALL_BIN_DIR) || $(MKDIR) $(INSTALL_BIN_DIR)
++ $(TEST) -d $(INSTALL_DIR) || $(MKDIR) -p $(INSTALL_DIR)
++ $(TEST) -d $(INSTALL_BIN_DIR) || $(MKDIR) -p $(INSTALL_BIN_DIR)
+ $(CP) -f ./$(FROMDIR)/$(PROG)$(EXE_EXT) $(TARGET)
+ -$(RM) -f $(MTARGET) > /dev/null 2>&1
+ -$(LN) -s $(PROG)$(EXE_EXT) $(MTARGET)