Skip to content
Browse files

FL-753: gptfdisk update

  • Loading branch information...
1 parent 5e2462f commit 345e47117635310c1c53c9d8cd8e30fbecd8e1bf @angryvincent angryvincent committed Sep 23, 2013
Showing with 59 additions and 2 deletions.
  1. +3 −2 sys-apps/gptfdisk/Manifest
  2. +56 −0 sys-apps/gptfdisk/gptfdisk-0.8.7.ebuild
View
5 sys-apps/gptfdisk/Manifest
@@ -1,2 +1,3 @@
-DIST gptfdisk-0.8.4.tar.gz 183081 RMD160 0ba6bb821509716337cfc19eb6f45852ece89719 SHA1 f2b3aa22e9d53f8dff921027722318c39e36ec9a SHA256 a4aa6800df3a43bec2900eff3c2d8488d8d60c06833035bc881237f9acb79b85
-DIST gptfdisk-0.8.5.tar.gz 183841 RMD160 65fef3bc8f63054a6aa55200176f8adc895ab1c8 SHA1 fdff85df2515d5c11d5dc6fdf726a0d65f5136d4 SHA256 15cc691f28212c157e05315662ed6b76ffdcc8de6fc118fa21c81ef5aae84af9
+DIST gptfdisk-0.8.4.tar.gz 183081 SHA256 a4aa6800df3a43bec2900eff3c2d8488d8d60c06833035bc881237f9acb79b85
+DIST gptfdisk-0.8.5.tar.gz 183841 SHA256 15cc691f28212c157e05315662ed6b76ffdcc8de6fc118fa21c81ef5aae84af9 SHA512 d16038507bc5f0f5dd17888fb1508c9bd92d51d80e4a842d4868b4da3ed8799c96b66d21a68f58e5d94b69a7e5717b7c8985a44d51b16bcfbe9c992f5f79d2ad WHIRLPOOL 9343060ce5b41d5ae8c457b8c4930d4babbf32fd9f9f69cdbb445302f163dbf7f16182febfa9321f806982fd2f29cfafaa2242e896385620375a456311b1b15c
+DIST gptfdisk-0.8.7.tar.gz 187010 SHA256 39e61d9f3701e95db1bcb83ce8fb211b22f33548e3c75b17f22067c6968e91e3 SHA512 c9bc3b326a97285ab2f3b7abf0bdc2f9012657874559c68e5a927a354195e47897622039daf490944d67467e8b4587c8220085a726623de960b46e1838861b97 WHIRLPOOL b81f5c53886b619a74e841fbda8406bdbe1ad74a6f330499d869d63c32a73317faac2c571ec7dbd8d3c1be2f5a0754b9f0ecdcc67258ce6ca44b42531682ae02
View
56 sys-apps/gptfdisk/gptfdisk-0.8.7.ebuild
@@ -0,0 +1,56 @@
+# Distributed under the terms of the GNU General Public License v2
+
+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="*"
+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
+}

0 comments on commit 345e471

Please sign in to comment.
Something went wrong with that request. Please try again.