diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-07-28 11:01:49 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-07-28 11:02:41 +0200 |
commit | b53923a9c87bbb4827e3a3373eb32a8c5047e016 (patch) | |
tree | 6e6d5bc38ab6e2ddf434e16f9b5bd811337de65a /sys-apps | |
parent | dev-libs/softhsm: version bump (diff) | |
download | gentoo-b53923a9c87bbb4827e3a3373eb32a8c5047e016.tar.gz gentoo-b53923a9c87bbb4827e3a3373eb32a8c5047e016.tar.bz2 gentoo-b53923a9c87bbb4827e3a3373eb32a8c5047e016.zip |
sys-apps/gptfdisk: Bump to version 1.0.3
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/gptfdisk/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/gptfdisk/gptfdisk-1.0.3.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/sys-apps/gptfdisk/Manifest b/sys-apps/gptfdisk/Manifest index 02da14f3cd7e..c90c4b13587c 100644 --- a/sys-apps/gptfdisk/Manifest +++ b/sys-apps/gptfdisk/Manifest @@ -1 +1,2 @@ DIST gptfdisk-1.0.1.tar.gz 195378 SHA256 864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7 SHA512 6aa2ed6213183ea38ce7dd6e7f4f23b88cc56bed5a4d078f563b9e0a3c276eacf869e28a27ccb4e473753f7bced7ecb5de4535626f9ed22b7a59a39906d0419c WHIRLPOOL b520ec11cf62d0d2a1b66af1d4acfbd24c2df4dad2c00562900d4f90fb67ee76b6fa2aefc5d730b6ce30551baafddd9d3e2631ad2022b067bed3cdc943fadb5c +DIST gptfdisk-1.0.3.tar.gz 199924 SHA256 89fd5aec35c409d610a36cb49c65b442058565ed84042f767bba614b8fc91b5c SHA512 80d437bfa2365abfffbd4812ea928fcebd52c5421de321cf190d395549e32c5ebdbb2d060cc4b95f77fe13cdd719f4d2bb3d0ed5d97792b100325f92d7c852d7 WHIRLPOOL 9de244cd4c1a3fe9672d2e50b46f3f690ddfaff306046b610351a1f75697199e6392e7048f12edbe82285b5eb773c1802417329feb610ed609049a5318525b99 diff --git a/sys-apps/gptfdisk/gptfdisk-1.0.3.ebuild b/sys-apps/gptfdisk/gptfdisk-1.0.3.ebuild new file mode 100644 index 000000000000..e9731e664817 --- /dev/null +++ b/sys-apps/gptfdisk/gptfdisk-1.0.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="kernel_linux ncurses static" + +# libuuid from util-linux is required. +LIB_DEPEND=" + dev-libs/popt[static-libs(+)] + ncurses? ( >=sys-libs/ncurses-5.7-r7:0=[static-libs(+)] ) + kernel_linux? ( sys-apps/util-linux[static-libs(+)] ) +" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND=" + ${RDEPEND} + static? ( ${LIB_DEPEND} ) + virtual/pkgconfig +" + +src_prepare() { + default + + tc-export CXX PKG_CONFIG + + if ! use ncurses ; then + sed -i \ + -e '/^all:/s:cgdisk::' \ + Makefile || die + fi + + sed \ + -e '/g++/s:=:?=:g' \ + -e 's:-lncursesw:$(shell $(PKG_CONFIG) --libs ncursesw):g' \ + -i Makefile || die + + use static && append-ldflags -static +} + +src_install() { + dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts + doman *.8 + dodoc NEWS README +} |