app-misc/neofetch: support Prefix.
authorBenda Xu <heroxbd@gentoo.org>
Sat, 3 Dec 2016 06:53:00 +0000 (15:53 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Sat, 3 Dec 2016 06:53:13 +0000 (15:53 +0900)
Package-Manager: portage-2.3.2

app-misc/neofetch/neofetch-1.9.1.ebuild

index c7bbb2e43e92be75a7e2cf2bc97b8cbf5793e2c7..241401a2495257eb0913c47c524c9e51f0229869 100644 (file)
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit prefix
+
 DESCRIPTION="Simple information system script"
 HOMEPAGE="https://github.com/dylanaraps/neofetch"
 SRC_URI="https://github.com/dylanaraps/${PN}/archive/${PV}/${P}.tar.gz"
@@ -24,3 +26,12 @@ RDEPEND="${DEPEND}
                media-libs/imlib2
                media-gfx/imagemagick
        )"
+
+src_prepare() {
+       hprefixify ${PN}
+       default
+}
+
+src_install() {
+       emake DESTDIR="${ED}" install
+}