From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A2FE413888F for ; Tue, 27 Oct 2015 00:08:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54737E07F7; Tue, 27 Oct 2015 00:08:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1DD4E07F7 for ; Tue, 27 Oct 2015 00:08:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72510340B0B for ; Tue, 27 Oct 2015 00:08:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 263271926 for ; Tue, 27 Oct 2015 00:08:34 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1445904503.b139b20520f9a194501c4894f5d9dd9429a08b70.mrueg@gentoo> Subject: [gentoo-commits] dev/mrueg:master commit in: app-admin/passwordsafe/ X-VCS-Repository: dev/mrueg X-VCS-Files: app-admin/passwordsafe/Manifest app-admin/passwordsafe/metadata.xml app-admin/passwordsafe/passwordsafe-0.97_beta.ebuild X-VCS-Directories: app-admin/passwordsafe/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: b139b20520f9a194501c4894f5d9dd9429a08b70 X-VCS-Branch: master Date: Tue, 27 Oct 2015 00:08:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 74e22204-e93b-4961-bcd3-4edfe92e2a28 X-Archives-Hash: 7d95f0cccda23262c32ec438386e5bde commit: b139b20520f9a194501c4894f5d9dd9429a08b70 Author: Manuel Rüger gentoo org> AuthorDate: Tue Oct 27 00:08:23 2015 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Tue Oct 27 00:08:23 2015 +0000 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=b139b205 app-admin/passwordsafe: Initial version. Original ebuild by John R. Graham, Simone Scanzoni and Hendrik v. Raven. Gentoo-Bug: #453458 Package-Manager: portage-2.2.23 app-admin/passwordsafe/Manifest | 1 + app-admin/passwordsafe/metadata.xml | 12 +++ .../passwordsafe/passwordsafe-0.97_beta.ebuild | 98 ++++++++++++++++++++++ 3 files changed, 111 insertions(+) diff --git a/app-admin/passwordsafe/Manifest b/app-admin/passwordsafe/Manifest new file mode 100644 index 0000000..8d1437c --- /dev/null +++ b/app-admin/passwordsafe/Manifest @@ -0,0 +1 @@ +DIST passwordsafe-0.97_beta.tar.gz 13732972 SHA256 c19a7fff668d0459f304d83e6ddb75f52760d10ad2d015e5bb3446a920d88bd9 SHA512 f507fb3a3b3646c707be589a89442e58da47cc11f3675b6cedb6f57d40178ff5eb3ec9ba6443be6aec708ebbfbfb412fa7b641436c0b42d2e42b4238b3fbcae0 WHIRLPOOL dd344efca6625cc5cb8c0df1396ccfa1610c77c6636d459ad50088b749badba48fd67d688ca150a6f8e102542a01939a6514acd75ebaa3cec987bb2bd178bcf3 diff --git a/app-admin/passwordsafe/metadata.xml b/app-admin/passwordsafe/metadata.xml new file mode 100644 index 0000000..a0ac2db --- /dev/null +++ b/app-admin/passwordsafe/metadata.xml @@ -0,0 +1,12 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + Avoid collision with app-misc/pwsafe + Enable support for Yubikey + + diff --git a/app-admin/passwordsafe/passwordsafe-0.97_beta.ebuild b/app-admin/passwordsafe/passwordsafe-0.97_beta.ebuild new file mode 100644 index 0000000..e6f730d --- /dev/null +++ b/app-admin/passwordsafe/passwordsafe-0.97_beta.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +WX_GTK_VER="3.0" + +inherit eutils flag-o-matic wxwidgets + +MY_PV="${PV/_beta/BETA}" +DESCRIPTION="Password manager with wxGTK based frontend" +HOMEPAGE="http://pwsafe.org/ https://github.com/pwsafe/pwsafe/" +SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="minimal yubikey" + +RDEPEND="dev-libs/xerces-c + sys-apps/util-linux + sys-devel/gettext + x11-libs/libXt + x11-libs/libXtst + x11-libs/wxGTK:${WX_GTK_VER}[X] + !minimal? ( !!app-misc/pwsafe ) + yubikey? ( sys-auth/ykpers )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/pwsafe-${MY_PV} + +pkg_pretend() { + einfo "Checking for -std=c++11 support in compiler" + test-flags-CXX -std=c++11 > /dev/null || die +} + +src_prepare() { + # remove hard coded compilers and compiler flags + sed -e '/^export CXXFLAGS/d' -i Makefile.linux || die + sed -i src/core/Makefile src/os/linux/Makefile src/ui/wxWidgets/Makefile \ + -e 's/-O[0-3]\?//g' -e 's/-g(gdb)\?//g' \ + -e '/^CC=/d' -e '/^CXX=/d' || die + + # generator for the version.h only adds \r breaking the c file + cp src/ui/wxWidgets/version.in src/ui/wxWidgets/version.h || die + + # binary name pwsafe is in use by app-misc/pwsafe, we use passwordsafe + # instead. Perform required changes in linking files + sed -i install/desktop/pwsafe.desktop -e "s/pwsafe/${PN}/g" || die + sed -i docs/pwsafe.1 \ + -e 's/PWSAFE/PASSWORDSAFE/' \ + -e "s/^.B pwsafe/.B ${PN}/" || die +} + +src_configure() { + if ! use yubikey ; then + export NO_YUBI=1 + fi + + need-wxwidgets unicode + + strip-flags + append-cxxflags -std=c++11 +} + +src_compile() { + emake unicoderelease help I18N +} + +src_install() { + if use minimal; then + newbin src/ui/wxWidgets/GCCUnicodeRelease/pwsafe ${PN} + else + dobin src/ui/wxWidgets/GCCUnicodeRelease/pwsafe + dosym pwsafe /usr/bin/${PN} + fi + + newman docs/pwsafe.1 ${PN}.1 + + dodoc README.txt docs/{ReleaseNotes.txt,ChangeLog.txt} + + insinto /usr/share/pwsafe/xml + doins xml/* + + insinto /usr/share/locale + doins -r src/ui/wxWidgets/I18N/mos/* + + # The upstream Makefile builds this .zip file from html source material for + # use by the package's internal help system. Must prevent + # Portage from applying additional compression. + docompress -x /usr/share/doc/${PN}/help + insinto /usr/share/doc/${PN}/help + doins help/*.zip + + newicon install/graphics/pwsafe.png ${PN}.png + newmenu install/desktop/pwsafe.desktop ${PN}.desktop +}