app-i18n/rime-data: respect EPREFIX
authorAkinori Hattori <hattya@gentoo.org>
Fri, 27 Jul 2018 13:40:53 +0000 (22:40 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Fri, 27 Jul 2018 13:40:53 +0000 (22:40 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-i18n/rime-data/rime-data-0.35.ebuild

index d047cace41e257e1ee01e1acfcf73ce093b66bf6..4290b96b36316867a8f729329501a89091eab3bc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -7,7 +7,7 @@ MY_PN="brise"
 MY_P="${MY_PN}-${PV}"
 
 DESCRIPTION="Data resources for Rime Input Method Engine"
-HOMEPAGE="http://rime.im/ https://github.com/rime/brise"
+HOMEPAGE="https://rime.im/ https://github.com/rime/brise"
 SRC_URI="https://dl.bintray.com/lotem/rime/${MY_P}.tar.gz"
 
 LICENSE="GPL-3"
@@ -17,5 +17,10 @@ IUSE=""
 
 DEPEND="app-i18n/librime"
 RDEPEND="${DEPEND}"
-
 S="${WORKDIR}/${MY_PN}"
+
+src_prepare() {
+       sed -i "/^[[:space:]]*PREFIX/s:/usr:${EPREFIX}/usr:" Makefile
+
+       default
+}