nano stable port information

Package: nano
Version: 2.0.7
Revision: 1001
Description: Free Pico clone with some new features
License: GPL
Maintainer: Andreas Gockel
Depends: libncursesw5-shlibs (>= 5.4-20041023-1001), libiconv, libgettext3-shlibs
BuildDepends: libncursesw5 (>= 5.4-20041023-1001), libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Replaces: %n-unstable, nano-small, nano-noutf8
Conflicts: %n-unstable, nano-small, nano-noutf8
Source: http://www.%n-editor.org/dist/v2.0/%n-%v.tar.gz
Source-MD5: 16187fed2bdefec6275ece6401ce4cd2
ConfigureParams: --enable-extra --enable-color --enable-multibuffer --enable-%nrc --enable-all --disable-dependency-tracking --enable-utf8
InstallScript: <<
make install prefix=%i
/usr/bin/install -d -m 755 %i/etc
/usr/bin/install -c -m 644 %b/doc/%nrc.sample %i/etc/%nrc
<<
DocFiles: <<
ABOUT-NLS AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO UPGRADE
doc/faq.html doc/texinfo/%n.html doc/texinfo/%n.texi po/ChangeLog:ChangeLog.po
doc/man/fr/%n.1.html:%n.1.html.fr doc/man/fr/%nrc.5.html:%nrc.5.html.fr
doc/man/fr/r%n.1.html:r%n.1.html.fr doc/man/%n.1.html doc/man/%nrc.5.html
doc/man/r%n.1.html doc/%nrc.sample
<<
PostInstScript: <<
set -e
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
update-alternatives --install %p/bin/editor editor %p/bin/%n 70 \
--slave %p/share/man/man1/editor.1 editor.1 %p/share/man/man1/%n.1
update-alternatives --install %p/etc/editorrc editorrc %p/etc/%nrc 70
update-alternatives --install %p/bin/editor editor %p/bin/r%n 25 \
--slave %p/share/man/man1/editor.1 editor.1 %p/share/man/man1/r%n.1
fi
<<
PreRmScript: <<
set -e
if [ "$1" != "upgrade" ]; then
update-alternatives --remove editor %p/bin/%n
update-alternatives --remove editor %p/bin/r%n
update-alternatives --remove editorrc %p/etc/%nrc
fi
<<
ConfFiles: %p/etc/%nrc
InfoDocs: %n.info
Homepage: http://www.nano-editor.org/
DescDetail: <<
GNU %n is a free replacement for Pico, the default Pine editor. GNU %n
is an effort to provide a Pico-like editor, but also includes some features
that were missing in the original, such as 'search and replace', 'goto line'
or internationalization support.
<<
DescUsage: <<
Uses update-alternatives in case users wants to change between
default editor.
.
The sample config was in %p/share/doc/%n/%nrc.sample and %p/etc/%nrc
<<
DescPackaging: <<
Added --enable-nanorc to support config files.
.
Previous versions by Jeremy Higgs
<<

nano _unstable_ port information

Info2: <<
Package: nano%type_pkg[nano]
Version: 2.0.9
Revision: 1002
Description: Free Pico clone with some new features
Type: nano (. -noutf8 -small)
License: GPL
Maintainer: Andreas Gockel
Depends: <<
(%type_raw[nano] = .) libncursesw5-shlibs (>= 5.4-20041023-1001),
(%type_raw[nano] != .) libncurses5-shlibs (>= 5.4-20041023-1006),
(%type_raw[nano] != -small) libiconv,
(%type_raw[nano] != -small) libgettext3-shlibs
<<
BuildDepends: <<
fink (>= 0.27.2),
(%type_raw[nano] = .) libncursesw5 (>= 5.4-20041023-1001),
(%type_raw[nano] != .) libncurses5 (>= 5.4-20041023-1006),
(%type_raw[nano] != -small) libiconv-dev,
(%type_raw[nano] != -small) libgettext3-dev,
(%type_raw[nano] != -small) gettext-bin,
(%type_raw[nano] != -small) gettext-tools
<<
Replaces: nano-unstable, nano-small, nano-noutf8, nano-cur, nano
Conflicts: nano-unstable, nano-small, nano-noutf8, nano-cur, nano
Source: http://www.nano-editor.org/dist/v2.0/nano-%v.tar.gz
Source-MD5: 2be94dc43fb60fff4626a2401a977220
ConfigureParams: --disable-dependency-tracking
CompileScript: <<
#!/bin/sh -ev
if [ "%type_raw[nano]" == "-noutf8" ]; then
./configure %c --disable-utf8 --enable-extra --enable-color --enable-multibuffer --enable-nanorc --enable-all
elif [ "%type_raw[nano]" == "-small" ]; then
./configure %c --disable-utf8 --disable-nls --disable-all --enable-tiny
elif [ "%type_raw[nano]" == "." ]; then
./configure %c --enable-utf8 --enable-extra --enable-color --enable-multibuffer --enable-nanorc --enable-all
fi
make
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i
if [ "%type_raw[nano]" != "-small" ]; then
/usr/bin/install -d -m 755 %i/etc
/usr/bin/install -c -m 644 %b/doc/nanorc.sample %i/etc/nanorc
fi
<<
DocFiles: <<
ABOUT-NLS AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO UPGRADE
doc/faq.html doc/texinfo/nano.html doc/texinfo/nano.texi po/ChangeLog:ChangeLog.po
doc/man/fr/nano.1.html:nano.1.html.fr doc/man/fr/rnano.1.html:rnano.1.html.fr
doc/man/nano.1.html doc/man/rnano.1.html
(%type_raw[nano] != -small) doc/nanorc.sample
(%type_raw[nano] != -small) doc/man/fr/nanorc.5.html:nanorc.5.html.fr
(%type_raw[nano] != -small) doc/man/nanorc.5.html
<<
PostInstScript: <<
if [ "%type_raw[nano]" != "-small" ]; then
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
update-alternatives --install %p/bin/editor editor %p/bin/nano 70 \
--slave %p/share/man/man1/editor.1 editor.1 %p/share/man/man1/nano.1
update-alternatives --install %p/etc/editorrc editorrc %p/etc/nanorc 70
update-alternatives --install %p/bin/editor editor %p/bin/rnano 25 \
--slave %p/share/man/man1/editor.1 editor.1 %p/share/man/man1/rnano.1
fi
fi
<<
PreRmScript: <<
if [ "%type_raw[nano]" != "-small" ]; then
if [ "$1" != "upgrade" ]; then
update-alternatives --remove editor %p/bin/nano
update-alternatives --remove editor %p/bin/rnano
update-alternatives --remove editorrc %p/etc/nanorc
fi
fi
<<
ConfFiles: (%type_raw[nano] != -small) %p/etc/nanorc
InfoDocs: nano.info
Homepage: http://www.nano-editor.org/
DescDetail: <<
GNU nano is a free replacement for Pico, the default Pine editor. GNU nano
is an effort to provide a Pico-like editor, but also includes some features
that were missing in the original, such as 'search and replace', 'goto line'
or internationalization support.
<<
DescUsage: <<
Uses update-alternatives in case users wants to change between
default editor.
.
The sample config is in %p/share/doc/%n/nanorc.sample and %p/etc/nanorc.
.
update-alternatives and config-file are unsupported in nano-small.
<<
<<