media-sound/podracer: new revision that unpacks the gzipped man page.
authorMichael Orlitzky <mjo@gentoo.org>
Mon, 24 Jul 2017 21:48:15 +0000 (17:48 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Mon, 24 Jul 2017 21:48:15 +0000 (17:48 -0400)
Gentoo-Bug: 619956

Package-Manager: Portage-2.3.6, Repoman-2.3.1

media-sound/podracer/podracer-1.4-r2.ebuild [moved from media-sound/podracer/podracer-1.4-r1.ebuild with 64% similarity]

similarity index 64%
rename from media-sound/podracer/podracer-1.4-r1.ebuild
rename to media-sound/podracer/podracer-1.4-r2.ebuild
index ef770550f2c5f0836222b129b9dc1323d61fd624..13ff3b40a5e594a5a5d2abf92d1a062c8a5c4d9f 100644 (file)
@@ -13,19 +13,25 @@ KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND=""
-RDEPEND="
-       app-shells/bash
-       net-misc/curl
-"
+RDEPEND="app-shells/bash
+       net-misc/curl"
+
+src_unpack() {
+       default
+
+       # Bug 619956. Change directories first to ensure that "unpack" outputs
+       # to ${S} and not to ${WORKDIR}.
+       cd "${S}" || die
+       unpack "${S}/podracer.1.gz"
+}
 
 src_install() {
        dobin podracer
        sed -i -e "s:sample=/usr/share/doc/\$progname/sample.subscriptions:sample=/usr/share/doc/${PF}/sample.subscriptions:" "${D}"/usr/bin/podracer || die
        dodoc CREDITS README ChangeLog TODO
-       doman podracer.1.gz
-       docompress -x /usr/share/doc/${PF}/sample.subscriptions
-       insinto /usr/share/doc/${PF}
-       doins sample.subscriptions
+       doman podracer.1
+       docompress -x "/usr/share/doc/${PF}/sample.subscriptions"
+       dodoc sample.subscriptions
        insinto /etc/
        doins podracer.conf
 }