summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-10-20 11:29:19 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-10-20 11:29:19 +0000
commitd062d899e5b2ff321e8969101122a0e4d86facfa (patch)
treed7c60ea917cbbf9983a3d96ff6c2c212165e79f2 /sys-apps/gptfdisk
parentUse spaces instead of tabs to match upstream. (diff)
downloadgentoo-2-d062d899e5b2ff321e8969101122a0e4d86facfa.tar.gz
gentoo-2-d062d899e5b2ff321e8969101122a0e4d86facfa.tar.bz2
gentoo-2-d062d899e5b2ff321e8969101122a0e4d86facfa.zip
Version bump.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-apps/gptfdisk')
-rw-r--r--sys-apps/gptfdisk/ChangeLog7
-rw-r--r--sys-apps/gptfdisk/gptfdisk-0.8.8.ebuild58
2 files changed, 64 insertions, 1 deletions
diff --git a/sys-apps/gptfdisk/ChangeLog b/sys-apps/gptfdisk/ChangeLog
index 667cc617f0d1..8fe1ca9a4710 100644
--- a/sys-apps/gptfdisk/ChangeLog
+++ b/sys-apps/gptfdisk/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/gptfdisk
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/gptfdisk/ChangeLog,v 1.36 2013/05/22 21:35:43 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gptfdisk/ChangeLog,v 1.37 2013/10/20 11:29:19 ssuominen Exp $
+
+*gptfdisk-0.8.8 (20 Oct 2013)
+
+ 20 Oct 2013; Samuli Suominen <ssuominen@gentoo.org> +gptfdisk-0.8.8.ebuild:
+ Version bump.
22 May 2013; Mike Gilbert <floppym@gentoo.org> gptfdisk-0.8.6.ebuild:
Use correct ICU flags. Patch by Arfrever.
diff --git a/sys-apps/gptfdisk/gptfdisk-0.8.8.ebuild b/sys-apps/gptfdisk/gptfdisk-0.8.8.ebuild
new file mode 100644
index 000000000000..aa19a4062e7c
--- /dev/null
+++ b/sys-apps/gptfdisk/gptfdisk-0.8.8.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/gptfdisk/gptfdisk-0.8.8.ebuild,v 1.1 2013/10/20 11:29:19 ssuominen Exp $
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="GPT partition table manipulator for Linux"
+HOMEPAGE="http://www.rodsbooks.com/gdisk/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+IUSE="+icu kernel_linux ncurses static"
+
+LIB_DEPEND="dev-libs/popt[static-libs(+)]
+ ncurses? ( >=sys-libs/ncurses-5.7-r7[static-libs(+)] )
+ icu? ( dev-libs/icu:=[static-libs(+)] )
+ kernel_linux? ( sys-apps/util-linux[static-libs(+)] )" # libuuid
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )
+ virtual/pkgconfig"
+
+src_prepare() {
+ tc-export CXX PKG_CONFIG
+
+ if use icu; then
+ append-cxxflags $(${PKG_CONFIG} --variable=CXXFLAGS icu-io icu-uc)
+ else
+ sed \
+ -e 's:-licuio::g' \
+ -e 's:-licuuc::g' \
+ -e 's:-D USE_UTF16::g' \
+ -i Makefile || die
+ fi
+
+ if ! use ncurses; then
+ sed -i \
+ -e '/^all:/s:cgdisk::' \
+ Makefile || die
+ fi
+
+ sed \
+ -e '/g++/s:=:?=:g' \
+ -e "s:-lncurses:$(${PKG_CONFIG} --libs ncurses):g" \
+ -i Makefile || die
+
+ use static && append-ldflags -static
+}
+
+src_install() {
+ dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts
+ doman *.8
+ dodoc NEWS README
+}