app-editors/nano: Synced live ebuild.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 27 Apr 2018 14:42:35 +0000 (16:42 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 27 Apr 2018 14:42:35 +0000 (16:42 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

app-editors/nano/nano-9999.ebuild

index 0aed36a7b0ee9ca5a6d88d5e10d8d7f79380be5e..2b29359919a761f35c40d5d7eb92c87256f7e5e2 100644 (file)
@@ -8,7 +8,7 @@ if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.sv.gnu.org/nano.git"
        inherit git-r3 autotools
 else
-       MY_P=${PN}-${PV/_}
+       MY_P="${PN}-${PV/_}"
        SRC_URI="https://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
@@ -32,10 +32,10 @@ DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )"
 
 src_prepare() {
+       default
        if [[ ${PV} == "9999" ]] ; then
                eautoreconf
        fi
-       default
 }
 
 src_configure() {
@@ -64,7 +64,7 @@ src_configure() {
 
 src_install() {
        default
-       rm -rf "${D}"/trash
+       rm -rf "${ED%/}"/trash
 
        dodoc doc/sample.nanorc
        docinto html
@@ -78,6 +78,5 @@ src_install() {
                        "${ED%/}"/etc/nanorc || die
        fi
 
-       dodir /usr/bin
        dosym ../../bin/nano /usr/bin/nano
 }