mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
app-crypt/tomb: respect ldflags, install i18n stuff
Closes: https://bugs.gentoo.org/783045 Bug: https://github.com/gentoo/guru/issues/56 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
--- a/extras/gtomb/gtomb 2021-04-12 03:01:14.803394386 +0200
|
||||
+++ b/extras/gtomb/gtomb 2021-04-12 03:02:19.277491170 +0200
|
||||
--- a/extras/gtomb/gtomb
|
||||
+++ b/extras/gtomb/gtomb
|
||||
@@ -19,8 +19,8 @@
|
||||
# along with this source code. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
17
app-crypt/tomb/files/tomb-2.9-respect-ldflags.patch
Normal file
17
app-crypt/tomb/files/tomb-2.9-respect-ldflags.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
--- a/extras/kdf-keys/Makefile
|
||||
+++ b/extras/kdf-keys/Makefile
|
||||
@@ -2,10 +2,10 @@
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
all:
|
||||
- $(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2 pbkdf2.c -lgcrypt
|
||||
- $(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2-getiter benchmark.c -lgcrypt
|
||||
- $(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2-gensalt gen_salt.c -lgcrypt
|
||||
- $(CC) -O2 $(CFLAGS) -o tomb-kdb-hexencode hexencode.c
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o tomb-kdb-pbkdf2 pbkdf2.c -lgcrypt
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o tomb-kdb-pbkdf2-getiter benchmark.c -lgcrypt
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o tomb-kdb-pbkdf2-gensalt gen_salt.c -lgcrypt
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o tomb-kdb-hexencode hexencode.c
|
||||
|
||||
test:
|
||||
@echo "Running Tomb-kdb tests"
|
||||
@@ -3,15 +3,17 @@
|
||||
|
||||
EAPI="7"
|
||||
|
||||
MYP="${P^}"
|
||||
|
||||
inherit desktop qmake-utils toolchain-funcs xdg
|
||||
|
||||
MYP="${P^}"
|
||||
DESCRIPTION="Tomb :: File Encryption on GNU/Linux"
|
||||
HOMEPAGE="
|
||||
https://www.dyne.org/software/tomb
|
||||
https://github.com/dyne/Tomb
|
||||
"
|
||||
SRC_URI="https://files.dyne.org/tomb/releases/Tomb-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
LICENSE="
|
||||
GPL-3
|
||||
gui? ( GPL-3+ )
|
||||
@@ -19,9 +21,13 @@ LICENSE="
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="gui test tray"
|
||||
|
||||
#test require sudo, can't be done non interactively
|
||||
RESTRICT="test"
|
||||
PATCHES=( "${FILESDIR}/gtomb.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gtomb.patch"
|
||||
"${FILESDIR}/${P}-respect-ldflags.patch"
|
||||
)
|
||||
DOCS=(
|
||||
AUTHORS.txt
|
||||
ChangeLog.txt
|
||||
@@ -36,7 +42,7 @@ DOCS=(
|
||||
doc/TKS1-draft.pdf
|
||||
doc/tomb_manpage.pdf
|
||||
)
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
CDEPEND="
|
||||
dev-libs/libgcrypt
|
||||
tray? (
|
||||
@@ -109,6 +115,8 @@ src_install() {
|
||||
pushd extras/qt-tray || die
|
||||
dobin tomb-qt-tray
|
||||
doicon pixmaps/tomb_icon.png
|
||||
insinto /usr/share
|
||||
doins -r i18n
|
||||
popd || die
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user