commit:     49fa180f34b8030fee0aba86ccadd8b86769a4a1
Author:     Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 16:27:47 2016 +0000
Commit:     Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 16:27:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49fa180f

sys-fs/dislocker: new ebuild written by me.

Package-Manager: portage-2.2.26

 sys-fs/dislocker/dislocker-9999.ebuild | 43 ++++++++++++++++++++++++++++++++++
 sys-fs/dislocker/metadata.xml          | 15 ++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/sys-fs/dislocker/dislocker-9999.ebuild 
b/sys-fs/dislocker/dislocker-9999.ebuild
new file mode 100644
index 0000000..53ea3b1
--- /dev/null
+++ b/sys-fs/dislocker/dislocker-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils flag-o-matic
+
+DESCRIPTION="Dislocker is used to read BitLocker encrypted partitions."
+HOMEPAGE="https://github.com/Aorimn/dislocker";
+
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/Aorimn/dislocker.git";
+       inherit git-r3
+else
+       SRC_URI="https://github.com/Aorimn/dislocker/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~x86 ~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="mbedtls polarssl ruby"
+REQUIRED_USE="|| ( polarssl mbedtls )"
+
+DEPEND="sys-fs/fuse
+       mbedtls? ( net-libs/mbedtls )
+       polarssl? ( net-libs/polarssl )
+       ruby? ( dev-lang/ruby:2.1 )"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+# We either need to change Werror to Wno-error or remove the multiple 
declarations of FORTIFY_SOURCE
+#    sed 's:Werror:Wno-error:g' -i ${S}/src/CMakeLists.txt || die
+       sed 's:-D_FORTIFY_SOURCE=2::g' -i '${S}/src/CMakeLists.txt' || die
+
+       sed 's:../man:../../'${P}'/man:g' -i '${S}/src/CMakeLists.txt' || die
+}
+
+src_install() {
+       find "${S}/man/linux" -name '*.1' -exec doman '{}' +
+       cmake-utils_src_install
+}

diff --git a/sys-fs/dislocker/metadata.xml b/sys-fs/dislocker/metadata.xml
new file mode 100644
index 0000000..403e97f
--- /dev/null
+++ b/sys-fs/dislocker/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer>
+    <email>native...@gentoo.org</email>
+    <name>Andreas Schuerch</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">Aorimn/dislocker</remote-id>
+  </upstream>
+  <use>
+    <flag name="mbedtls">build with mbedtls</flag>
+    <flag name="polarssl">build with polarssl</flag>
+  </use>
+</pkgmetadata>

Reply via email to