Skip to content

Commit

Permalink
Update nano to 2.7.0. Should fix at least Bug #592572.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
  • Loading branch information
Kumba42 committed Oct 18, 2016
1 parent 1a4bbeb commit 70b254e
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-editors/nano/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ DIST nano-2.4.3.tar.gz 1878096 SHA256 32d627072b6026678e4f4095c047adec92ac7ec542
DIST nano-2.5.3.tar.gz 1967760 SHA256 b2b060129b9feff2d4870d803a441178c96531de9aed144ec0b83bd63ccb12ee SHA512 1d859f0bd88b9d907cfcaa84edc212bcaea4335c203922eb5b7378c2b45d88dffe1f3e4cb499a824d33781485834ef564997c58cf1fd92610d08f6ce8dcb67d5 WHIRLPOOL a2ca1c41d3cb26756cc9aba5b5fa0aeaea220626b98d0abfa1c5c4d4d57c3a5ef688d5edf00a6a00849ee25a67b2bbab93c4d454f6eb5a204b10fa01de3e298f
DIST nano-2.6.1.tar.gz 1999439 SHA256 56f2ba1c532647bee36abd5f87a714400af0be084cf857a65bc8f41a0dc28fe5 SHA512 224d643ce08b4c031263c1926d767c671d41e58b182b7ad32f9de2a8ed606c5b39da924cbe62052455584e087a8966285da17cb1fbf235680639351c390aec90 WHIRLPOOL da902989aceac4b15438c58603a56e1cc02b61ff0972f56032130af25d40b0d40344b063feb1aa2f1fd3f5bacbb325505865d0d0daf2e215aafbac0527ee41d6
DIST nano-2.6.3.tar.gz 2019354 SHA256 4f4054e12f2181c8e436163e931a0a565612242ff9e566c4d1adeda0f91fd503 SHA512 5079c0da976e3cfef9f3980e37c2501837bc66bb98fadd6fe7f02b061b83c99454678833fd43c74e6796cdc4ee9028ccba7a8a05e0f86e7a6517ba4d4c6bc95e WHIRLPOOL 94520ca9c7a11342133adfd3a1e9e9c77a6c07ab18b1b51bf39918b331abc6bd7ebeb937c2ec8ed3e59b8d0468e40f4e5811e66a8aecd469ad42c595c1b61fe4
DIST nano-2.7.0.tar.gz 2019889 SHA256 5dd1e9cf8e3de676c141a0b23f312e68380ef049926e2913e2114bbe32fbeac3 SHA512 d70719b9623e3b3c5f43dbf4dd1d53be5d498b28416d1c6bc4459887d34531222827dfb23bc6932a6304fe59df8d278810de813b4bc08b38c03f1badeddad12f WHIRLPOOL 5470eb106671d8b483fd7349d01d52c107082bf8bd67d03ff9cec3f656a9e280d1eda97befcf42067dc8732009fe9fcaaadbfa00af98be3ddbe073bd133d6386
82 changes: 82 additions & 0 deletions app-editors/nano/nano-2.7.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

inherit eutils flag-o-matic
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.sv.gnu.org/nano.git"
inherit git-r3 autotools
else
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 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
fi

DESCRIPTION="GNU GPL'd Pico clone with more functionality"
HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide"

LICENSE="GPL-3"
SLOT="0"
IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode"

LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
sys-libs/ncurses:0=[static-libs(+)]
magic? ( sys-apps/file[static-libs(+)] )
nls? ( virtual/libintl )
!ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
virtual/pkgconfig
static? ( ${LIB_DEPEND} )"

src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
fi
epatch_user
}

src_configure() {
use static && append-ldflags -static
local myconf=()
case ${CHOST} in
*-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
esac
econf \
--bindir="${EPREFIX}"/bin \
--htmldir=/trash \
$(use_enable !minimal color) \
$(use_enable !minimal multibuffer) \
$(use_enable !minimal nanorc) \
--disable-wrapping-as-root \
$(use_enable magic libmagic) \
$(use_enable spell speller) \
$(use_enable justify) \
$(use_enable debug) \
$(use_enable nls) \
$(use_enable unicode utf8) \
$(use_enable minimal tiny) \
$(usex ncurses --without-slang $(use_with slang)) \
"${myconf[@]}"
}

src_install() {
default
rm -rf "${D}"/trash

dodoc doc/nanorc.sample
dohtml doc/faq.html
insinto /etc
newins doc/nanorc.sample nanorc
if ! use minimal ; then
# Enable colorization by default.
sed -i \
-e '/^# include /s:# *::' \
"${ED}"/etc/nanorc || die
fi

dodir /usr/bin
dosym /bin/nano /usr/bin/nano
}

0 comments on commit 70b254e

Please sign in to comment.