From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/rhash/
Date: Thu, 13 Apr 2017 12:46:11 +0000 (UTC) [thread overview]
Message-ID: <1492087567.0cc7a7d8a5cd7f5d7c4189060696cec256305994.grobian@gentoo> (raw)
commit: 0cc7a7d8a5cd7f5d7c4189060696cec256305994
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 13 12:45:12 2017 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Apr 13 12:46:07 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc7a7d8
app-crypt/rhash: fixed for Prefix and macOS, keyworded
Package-Manager: Portage-2.3.5-prefix, Repoman-2.3.2
app-crypt/rhash/rhash-1.3.4.ebuild | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/app-crypt/rhash/rhash-1.3.4.ebuild b/app-crypt/rhash/rhash-1.3.4.ebuild
index 3c329cced17..3a58d6df434 100644
--- a/app-crypt/rhash/rhash-1.3.4.ebuild
+++ b/app-crypt/rhash/rhash-1.3.4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~x64-macos ~x86-macos"
IUSE="debug nls openssl static-libs"
RDEPEND="openssl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )"
@@ -25,6 +25,20 @@ src_prepare() {
# Exit on test failure or src_test will always succeed.
sed -i "s/return 1/exit 1/g" tests/test_rhash.sh || die
+ # Install /etc stuff inside the Prefix
+ sed -i -e 's:\$(DESTDIR)/etc:\$(DESTDIR)/$(SYSCONFDIR):g' Makefile || die
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ local
+ ver_script='-Wl,--version-script,exports.sym,-soname,$(SONAME)'
+ local install_name='-install_name $(LIBDIR)/$(SONAME)'
+ sed -i -e '/^\(SONAME\|SHAREDLIB\)/s/\.so\.\([0-9]\+\)/.\1.dylib/' \
+ -e '/^SOLINK/s/\.so/.dylib/' \
+ -e "s:${ver_script}:${install_name}:" \
+ librhash/Makefile \
+ Makefile || die
+ fi
+
multilib_copy_sources
}
@@ -39,13 +53,17 @@ multilib_src_compile() {
$(use openssl && echo -ldl)
)
+ [[ ${CHOST} == *-darwin* ]] && ADDLDFLAGS+=( $(use nls && echo -lintl) )
+
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" \
ADDCFLAGS="${ADDCFLAGS[*]}" ADDLDFLAGS="${ADDLDFLAGS[*]}" \
+ PREFIX="${EPREFIX}"/usr LIBDIR='$(PREFIX)'/$(get_libdir) \
build-shared $(use static-libs && echo lib-static)
}
myemake() {
- emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr LIBDIR='$(PREFIX)'/$(get_libdir) "${@}"
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr \
+ LIBDIR='$(PREFIX)'/$(get_libdir) SYSCONFDIR="${EPREFIX}"/etc "${@}"
}
multilib_src_install() {
next reply other threads:[~2017-04-13 12:46 UTC|newest]
Thread overview: 109+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 12:46 Fabian Groffen [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-08 1:37 [gentoo-commits] repo/gentoo:master commit in: app-crypt/rhash/ Sam James
2025-02-22 23:48 Sam James
2025-01-30 18:47 Jakov Smolić
2025-01-30 18:47 Jakov Smolić
2025-01-30 10:09 Arthur Zamarin
2025-01-30 10:09 Arthur Zamarin
2025-01-30 10:09 Arthur Zamarin
2025-01-30 10:09 Arthur Zamarin
2024-10-19 21:45 James Le Cuirot
2024-10-08 14:06 James Le Cuirot
2024-10-08 12:50 Sam James
2024-09-24 15:22 Sam James
2024-09-23 7:13 Arthur Zamarin
2024-09-23 6:02 Arthur Zamarin
2024-09-23 6:02 Arthur Zamarin
2024-09-23 6:02 Arthur Zamarin
2024-09-23 0:32 Sam James
2024-09-23 0:32 Sam James
2024-01-03 10:40 Sam James
2023-10-30 11:29 Sam James
2023-09-10 11:38 Fabian Groffen
2023-08-04 8:21 James Le Cuirot
2023-08-03 20:47 James Le Cuirot
2023-06-25 19:17 Sam James
2023-05-30 13:55 Fabian Groffen
2023-02-07 2:53 Sam James
2023-02-04 10:58 Sam James
2023-02-04 10:58 Sam James
2023-02-04 10:58 Sam James
2023-02-04 6:47 Arthur Zamarin
2023-02-04 6:47 Arthur Zamarin
2023-02-04 6:47 Arthur Zamarin
2023-02-04 6:47 Arthur Zamarin
2023-01-14 19:17 Sam James
2022-06-18 8:43 James Le Cuirot
2022-04-29 7:59 WANG Xuerui
2022-03-16 15:18 Sam James
2022-03-06 7:58 Sam James
2022-03-06 7:35 Sam James
2022-02-27 12:29 Jakov Smolić
2022-02-27 12:23 Jakov Smolić
2021-11-19 8:34 Sam James
2021-10-16 23:10 James Le Cuirot
2021-09-20 14:09 James Le Cuirot
2021-07-17 7:02 James Le Cuirot
2021-07-17 7:02 James Le Cuirot
2021-05-02 17:22 Mikle Kolyada
2021-01-28 19:31 Fabian Groffen
2021-01-07 21:48 James Le Cuirot
2021-01-06 12:55 Fabian Groffen
2020-12-18 14:49 Fabian Groffen
2020-08-17 22:21 James Le Cuirot
2019-08-05 23:55 Göktürk Yüksek
2019-08-04 18:42 James Le Cuirot
2019-08-04 18:42 James Le Cuirot
2019-06-13 13:07 Michael Haubenwallner
2019-06-13 13:07 Michael Haubenwallner
2019-03-03 10:43 James Le Cuirot
2019-01-14 18:32 Fabian Groffen
2019-01-13 20:01 James Le Cuirot
2019-01-13 16:35 James Le Cuirot
2019-01-09 15:12 Michael Haubenwallner
2018-12-01 15:05 Sergei Trofimovich
2018-11-13 20:23 Sergei Trofimovich
2018-09-13 21:35 James Le Cuirot
2018-09-13 19:23 Tobias Klausmann
2018-08-21 10:06 Mart Raudsepp
2018-08-17 0:33 Mikle Kolyada
2018-08-17 0:33 Mikle Kolyada
2018-08-16 0:39 Thomas Deutschmann
2018-08-11 18:55 Sergei Trofimovich
2018-08-08 22:04 Mikle Kolyada
2018-06-03 18:01 Mikle Kolyada
2018-04-28 22:27 Aaron Bauman
2018-03-25 18:53 James Le Cuirot
2018-03-24 8:28 Michał Górny
2018-03-22 21:07 James Le Cuirot
2018-03-02 16:09 Mart Raudsepp
2018-01-09 7:56 Fabian Groffen
2017-12-05 5:44 Markus Meier
2017-11-26 17:06 James Le Cuirot
2017-11-08 21:33 James Le Cuirot
2017-10-23 12:30 Michael Palimaka
2017-10-21 13:25 Tobias Klausmann
2017-10-15 22:27 Manuel Rüger
2017-10-14 17:20 Sergei Trofimovich
2017-10-13 12:03 Sergei Trofimovich
2017-10-13 11:31 Sergei Trofimovich
2017-09-12 7:26 Sergei Trofimovich
2017-09-12 7:26 Sergei Trofimovich
2017-09-02 12:58 James Le Cuirot
2017-09-02 12:38 James Le Cuirot
2017-09-02 12:38 James Le Cuirot
2017-08-17 21:12 James Le Cuirot
2017-08-10 20:34 Sergei Trofimovich
2017-06-30 7:08 Sergei Trofimovich
2017-06-20 12:48 Fabian Groffen
2017-06-15 14:23 Anthony G. Basile
2017-06-15 11:26 Alexis Ballier
2017-04-13 18:34 Fabian Groffen
2017-02-14 13:28 Jeroen Roovers
2017-02-14 13:28 Jeroen Roovers
2017-02-14 10:42 Tobias Klausmann
2017-02-10 21:11 James Le Cuirot
2017-02-10 21:11 James Le Cuirot
2016-09-16 21:27 James Le Cuirot
2016-09-16 21:27 James Le Cuirot
2016-07-21 16:19 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1492087567.0cc7a7d8a5cd7f5d7c4189060696cec256305994.grobian@gentoo \
--to=grobian@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox