editors/nano: Make several port improvements

* Switch to https:// MASTER_SITES
  * Use provided .xz for distribution file, saving: 50.5% / 1415kB
  * Add LICENSE_FILE
  * Remove CPPFLAGS/LDFLAGS variables, added 19 years ago when the port
    was first created. [1] They are incorrectly (globally) scoped, no
    longer necessary and incorrect for the ncurses:base case. Instead use
    Uses/ncurses.mk variables and provide these to configure to ensure
    includes/lib searches and linking are never mixed between base and
    ports.

[1] ports r29979

Approved by:		danilo (maintainer)
MFH:			2019Q2 (blanket: bugfix)
Differential_Revision:	D20660
This commit is contained in:
Kubilay Kocak 2019-06-24 03:24:44 +00:00
parent 920f47ebcc
commit c4c24177f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505000
2 changed files with 9 additions and 7 deletions

View File

@ -4,23 +4,25 @@
PORTNAME= nano
PORTVERSION= 4.2
CATEGORIES= editors
MASTER_SITES= http://www.nano-editor.org/dist/v${PORTVERSION:R}/ GNU
MASTER_SITES= https://www.nano-editor.org/dist/v${PORTVERSION:R}/ GNU
MAINTAINER= danilo@FreeBSD.org
COMMENT= Nano's ANOther editor, an enhanced free Pico clone
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= charsetfix ncurses
USES= charsetfix ncurses tar:xz
CONFLICTS= nano-devel-2*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --docdir=${DOCSDIR} --enable-utf8
CONFIGURE_ENV+= NCURSESW_CFLAGS="-I${NCURSESINC}" \
NCURSESW_LIBS="-L${NCURSESLIB} -lncursesw"
MAKE_ARGS+= install_htmlmanDATA=install-htmlmanDATA
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS EXAMPLES NLS
OPTIONS_SUB= yes

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1556227857
SHA256 (nano-4.2.tar.gz) = c06e456890a93e7a61317a938c70caacaa2bfd6161a52b2731df83875ebbcf80
SIZE (nano-4.2.tar.gz) = 2928595
TIMESTAMP = 1560579916
SHA256 (nano-4.2.tar.xz) = 1143defce62e391b241252ffdb6e5c1ded56cfe26d46ee81b796abe0ccc45df9
SIZE (nano-4.2.tar.xz) = 1478972