sys-apps/guix: fix 'localstatedir' to poin to /var/guix
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 8 Feb 2017 21:49:40 +0000 (21:49 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 8 Feb 2017 22:05:14 +0000 (22:05 +0000)
The path is used by /gnu/store binaries and is expected
location for ebuild itself.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

sys-apps/guix/guix-0.12.0-r2.ebuild [moved from sys-apps/guix/guix-0.12.0-r1.ebuild with 95% similarity]

similarity index 95%
rename from sys-apps/guix/guix-0.12.0-r1.ebuild
rename to sys-apps/guix/guix-0.12.0-r2.ebuild
index 1cdbf8f1567fba15ce7a8b8418771c2bdeafaccd..5acef2960892dcf71f247568d872b3ee084c3174 100644 (file)
@@ -97,6 +97,12 @@ pkg_setup() {
        done
 }
 
+src_configure() {
+       # to be compatible with guix from /gnu/store
+       econf \
+               --localstatedir="${EPREFIX}"/var
+}
+
 src_prepare() {
        copy_boot_guile_binaries
 
@@ -116,6 +122,7 @@ src_install() {
 
        readme.gentoo_create_doc
 
+       keepdir                /etc/guix
        # TODO: will need a tweak for prefix
        keepdir                /gnu/store
        fowners root:guixbuild /gnu/store