[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2023-12-08 Thread Arthur Zamarin
commit: 28cf7d027569649e99146074c1c20a6000d7d237
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec  8 20:05:14 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec  8 20:05:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28cf7d02

www-apps/nanoblogger: unkeyword 3.5_rc1-r1 for ~alpha, ~ia64, ~mips

Signed-off-by: Arthur Zamarin  gentoo.org>

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
index 04e12bba745f..1c7028fa84b4 100644
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ppc x86"
+KEYWORDS="amd64 ~hppa ppc x86"
 
 RDEPEND="app-shells/bash"
 



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2021-01-10 Thread Sam James
commit: 0db636841f686f23ffef5444e0c0e7ac43a62f4c
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan 10 22:10:38 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 10 22:27:48 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0db63684

www-apps/nanoblogger: mark ALLARCHES

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 www-apps/nanoblogger/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www-apps/nanoblogger/metadata.xml 
b/www-apps/nanoblogger/metadata.xml
index 438e4ce281b..3a171aa2b4e 100644
--- a/www-apps/nanoblogger/metadata.xml
+++ b/www-apps/nanoblogger/metadata.xml
@@ -5,6 +5,7 @@
web-a...@gentoo.org
Gentoo Webapps

+   

 Nanoblogger is a small weblog engine written in Bash for the command line. It
 uses common UNIX tools such as cat, grep, and sed.  Features include: support



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2019-10-12 Thread Michał Górny
commit: 82e1668b35ff7273d9b4184943c119ed045547f5
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Oct 12 07:01:19 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Oct 12 07:01:19 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e1668b

www-apps/nanoblogger: Drop old (EAPI 0)

Signed-off-by: Michał Górny  gentoo.org>

 www-apps/nanoblogger/Manifest |  1 -
 www-apps/nanoblogger/nanoblogger-3.2.3.ebuild | 63 ---
 2 files changed, 64 deletions(-)

diff --git a/www-apps/nanoblogger/Manifest b/www-apps/nanoblogger/Manifest
index 59d3dec6755..c7f74814e0d 100644
--- a/www-apps/nanoblogger/Manifest
+++ b/www-apps/nanoblogger/Manifest
@@ -1,2 +1 @@
-DIST nanoblogger-3.2.3.tar.gz 54672 BLAKE2B 
ab53f85d93d30e0db96d62b0dc5c0f079df1710ebe1b35be0c772d44eb01182617bbdfbbcb9e563861b9122363ee660f685683c54995ad539b8cd9803c29b6a1
 SHA512 
5cd771d1621a6e5fdb60cf34f294e93596584d7535d4a89a98fd8332c85b58e70715a9bf34e46839a1756a8827f37f998f105ba1e494cabefb780e81f6deb8d7
 DIST nanoblogger-3.5-rc1.tar.gz 131833 BLAKE2B 
d5918e406d0b5c6d82b466b43ed84b413fc539651baa568eacbd70b47eae4b382a4f621c8195631b47ef2039d6a4e0b569596a6d601881b195b1db5f7098d90c
 SHA512 
03a590b1bdf3adb9969e2ce6fda89ece99f33def9f46e1028d2c0724a86f47696c703a5a3bb3c4b1c34418b841702a15bae527cc94eba377ee2003203582de2f

diff --git a/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
deleted file mode 100644
index 559ec0157ce..000
--- a/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit bash-completion-r1
-
-DESCRIPTION="Small and simple weblog engine written in Bash for the 
command-line"
-HOMEPAGE="http://nanoblogger.sourceforge.net/;
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ia64 ~mips ppc x86"
-IUSE=""
-
-RDEPEND="app-shells/bash"
-
-src_unpack() {
-   unpack ${A}
-   cd "${S}"
-   sed -i \
-   -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
-   -e 's|"$NB_BASE_DIR/\(nb\.conf\)"|"/etc/\1"|g' \
-   -e 
"s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
-   nb || die "sed nb failed"
-}
-
-src_install() {
-   dobin nb
-   insinto /usr/share/nanoblogger
-   doins -r default moods plugins
-   insinto /etc
-   doins nb.conf
-   dodoc ChangeLog
-   dohtml docs/nanoblogger.html
-   dobashcomp "${FILESDIR}"/nb.bashcomp || die
-}
-
-pkg_postinst() {
-   elog
-   elog "Documentation for getting started with nanoblogger may be found 
at"
-   elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb 
--manual;."
-   elog
-   elog "To create and configure a new weblog, run the following as your 
user:"
-   elog "   nb -b /some/dir -a"
-   elog "where /some/dir is a directory that DOES NOT exist."
-   elog
-   elog "To prevent having to specify your blog directory every time you 
use"
-   elog "nanoblogger (with the -b switch), you can set a default value in 
your"
-   elog "~/.nb.conf.  For example:"
-   elog '   BLOG_DIR="$HOME/public_html/blog"'
-   elog
-   elog "If you are upgrading nanoblogger from a previous version, follow"
-   elog "these directions (as stated in the manual):"
-   elog "1. create a new weblog directory using nanoblogger (skip 
configuration):"
-   elog "  nb [-b blog_dir] -a"
-   elog "2. copy old data directry to new weblog:"
-   elog "  cp -r [old_blog_dir]/data [newblog_dir]"
-   elog "3. edit new blog.conf to your liking and rebuild weblog:"
-   elog "  nb [-b blog_dir] --configure -u all"
-   elog
-}



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2019-10-11 Thread Matt Turner
commit: bae5f5baa36df2f8ff65b9a9b9209288c2fef7b9
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Oct 12 04:18:35 2019 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Oct 12 04:29:10 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae5f5ba

www-apps/nanoblogger: drop to ~alpha, bug 696380

Signed-off-by: Matt Turner  gentoo.org>

 www-apps/nanoblogger/nanoblogger-3.2.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
index a4e50036ec2..559ec0157ce 100644
--- a/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc x86"
+KEYWORDS="~alpha amd64 ~hppa ia64 ~mips ppc x86"
 IUSE=""
 
 RDEPEND="app-shells/bash"



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2019-10-07 Thread Sergei Trofimovich
commit: f0c8cecdf20d914a41cccefdb2e3c02a6f710292
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Oct  7 19:08:47 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Oct  7 19:12:09 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0c8cecd

www-apps/nanoblogger: stable 3.5_rc1-r1 for ia64, bug #696380

Package-Manager: Portage-2.3.76, Repoman-2.3.17
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
index 04e12bba745..7317da5b6b3 100644
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ppc x86"
+KEYWORDS="~alpha amd64 ~hppa ia64 ~mips ppc x86"
 
 RDEPEND="app-shells/bash"
 



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2019-10-07 Thread Agostino Sarubbo
commit: 3477f2503fbacca55f2b869e3784f46c3b0c2e33
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Oct  7 09:46:54 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Oct  7 09:47:31 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3477f250

www-apps/nanoblogger: ppc stable wrt bug #696380

Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
index f28d080bbda..04e12bba745 100644
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc x86"
+KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ppc x86"
 
 RDEPEND="app-shells/bash"
 



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2019-10-07 Thread Agostino Sarubbo
commit: 34a97df5c62be32251b7fe64e5937308ddb64b1b
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Oct  7 08:41:10 2019 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Oct  7 08:41:10 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34a97df5

www-apps/nanoblogger: amd64 stable wrt bug #696380

Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
index f45652af314..f28d080bbda 100644
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc x86"
+KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc x86"
 
 RDEPEND="app-shells/bash"
 



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2018-05-15 Thread Manuel Rüger
commit: ca7f2c875819cb99d1e8a64cf03042c68f923288
Author: Manuel Rüger  gentoo  org>
AuthorDate: Tue May 15 13:15:55 2018 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Tue May 15 13:15:55 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca7f2c87

www-apps/nanoblogger: Remove old

Package-Manager: Portage-2.3.36, Repoman-2.3.9

 www-apps/nanoblogger/Manifest   |  1 -
 www-apps/nanoblogger/nanoblogger-3.3.ebuild | 68 
 www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild | 69 -
 3 files changed, 138 deletions(-)

diff --git a/www-apps/nanoblogger/Manifest b/www-apps/nanoblogger/Manifest
index 9c92bd8f56a..59d3dec6755 100644
--- a/www-apps/nanoblogger/Manifest
+++ b/www-apps/nanoblogger/Manifest
@@ -1,3 +1,2 @@
 DIST nanoblogger-3.2.3.tar.gz 54672 BLAKE2B 
ab53f85d93d30e0db96d62b0dc5c0f079df1710ebe1b35be0c772d44eb01182617bbdfbbcb9e563861b9122363ee660f685683c54995ad539b8cd9803c29b6a1
 SHA512 
5cd771d1621a6e5fdb60cf34f294e93596584d7535d4a89a98fd8332c85b58e70715a9bf34e46839a1756a8827f37f998f105ba1e494cabefb780e81f6deb8d7
-DIST nanoblogger-3.3.tar.gz 82302 BLAKE2B 
16b560de8f5a6b639ad439010aeb6335590bfe5620f29e6a8c1bdd4d96e677b707da7930407641282ecdc58ac031492699e2d211bba757808c8e4bcd7e36b5f2
 SHA512 
7de711a69ba0db7dd006902c335ce32773b8d02716048802487f683353702cebd164c059ce0a920856ab49a2b833d6524b6c0981d188c5874f42f6b2a6435f7d
 DIST nanoblogger-3.5-rc1.tar.gz 131833 BLAKE2B 
d5918e406d0b5c6d82b466b43ed84b413fc539651baa568eacbd70b47eae4b382a4f621c8195631b47ef2039d6a4e0b569596a6d601881b195b1db5f7098d90c
 SHA512 
03a590b1bdf3adb9969e2ce6fda89ece99f33def9f46e1028d2c0724a86f47696c703a5a3bb3c4b1c34418b841702a15bae527cc94eba377ee2003203582de2f

diff --git a/www-apps/nanoblogger/nanoblogger-3.3.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.3.ebuild
deleted file mode 100644
index 66a4ec78400..000
--- a/www-apps/nanoblogger/nanoblogger-3.3.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit bash-completion-r1
-
-DESCRIPTION="Small and simple weblog engine written in Bash for the 
command-line"
-HOMEPAGE="http://nanoblogger.sourceforge.net/;
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~x86"
-IUSE=""
-
-RDEPEND="app-shells/bash"
-
-src_unpack() {
-   unpack ${A}
-   cd "${S}"
-   sed -i \
-   -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
-   -e 's|^\(NB_CFG_DIR=\).*$|\1"/etc"|' \
-   -e 
"s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
-   nb || die "sed nb failed"
-}
-
-src_install() {
-   dobin nb
-   insinto /usr/share/nanoblogger
-   doins -r default moods plugins lib lang docs welcome-to-nb.txt
-   insinto /etc
-   doins nb.conf
-   dodoc ChangeLog
-   dohtml docs/nanoblogger.html
-   dobashcomp "${FILESDIR}"/nb.bashcomp || die
-}
-
-pkg_postinst() {
-   elog
-   elog "Documentation for getting started with nanoblogger may be found 
at"
-   elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb 
--manual;."
-   elog
-   elog "To create and configure a new weblog, run the following as your 
user:"
-   elog "   nb -b /some/dir -a"
-   elog "where /some/dir is a directory that DOES NOT exist."
-   elog
-   elog "To prevent having to specify your blog directory every time you 
use"
-   elog "nanoblogger (with the -b switch), you can set a default value in 
your"
-   elog "~/.nb.conf.  For example:"
-   elog '   BLOG_DIR="$HOME/public_html/blog"'
-   elog
-   elog "If you are upgrading nanoblogger from a previous version, follow"
-   elog "these directions (as stated in the manual):"
-   elog "1. create a new weblog directory using nanoblogger (skip 
configuration):"
-   elog "  nb [-b blog_dir] -a"
-   elog "2. copy old data directry to new weblog:"
-   elog "  cp -r [old_blog_dir]/data [newblog_dir]"
-   elog "3. edit new blog.conf to your liking and rebuild weblog:"
-   elog "  nb [-b blog_dir] --configure -u all"
-   elog
-   elog "You also should remove your [newblog_dir]/data/cat_1.db and run:"
-   elog "  nb -u all"
-   elog "after copying your old entries from [oldblog_dir]/data to"
-   elog "[newblog_dir]/data."
-   elog
-}

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild
deleted file mode 100644
index 1356e0e7010..000
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit bash-completion-r1
-

[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2017-06-06 Thread Patrice Clement
commit: 4052c091e000da5c0d4fe10647bdc567037224e3
Author: Patrice Clement  gentoo  org>
AuthorDate: Tue Jun  6 17:46:07 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Tue Jun  6 17:46:07 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4052c091

www-apps/nanoblogger: fix a typo and get rid of DOCS array.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
index 60dc2700947..f090ae37497 100644
--- a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -18,8 +18,7 @@ RDEPEND="app-shells/bash"
 
 S="${WORKDIR}/${MY_P}"
 
-HTML=( docs/nanoblogger.html )
-DOCS=( ChangeLog )
+HTML_DOCS=( docs/nanoblogger.html )
 
 src_prepare() {
default



[gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/

2017-06-05 Thread Patrice Clement
commit: e4b5fdf4199b3880424c4182817cf284b408
Author: Patrice Clement  gentoo  org>
AuthorDate: Mon Jun  5 21:56:54 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Mon Jun  5 21:57:08 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b5fdf4

www-apps/nanoblogger: EAPI 6 bump.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 71 ++
 1 file changed, 71 insertions(+)

diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild 
b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
new file mode 100644
index 000..60dc2700947
--- /dev/null
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1
+
+MY_P="${P/_/-}"
+DESCRIPTION="Small and simple weblog engine written in Bash for the 
command-line"
+HOMEPAGE="http://nanoblogger.sourceforge.net/;
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~x86"
+
+RDEPEND="app-shells/bash"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML=( docs/nanoblogger.html )
+DOCS=( ChangeLog )
+
+src_prepare() {
+   default
+   sed -i \
+   -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
+   -e 's|^\(NB_CFG_DIR=\).*$|\1"/etc"|' \
+   -e 
"s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
+   nb || die "sed nb failed"
+}
+
+src_install() {
+   dobin nb
+   insinto /usr/share/nanoblogger
+   doins -r default moods plugins lib lang docs welcome-to-nb.txt
+   insinto /etc
+   doins nb.conf
+   einstalldocs
+   dobashcomp "${FILESDIR}"/nb.bashcomp
+}
+
+pkg_postinst() {
+   elog
+   elog "Documentation for getting started with nanoblogger may be found 
at"
+   elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb 
--manual;."
+   elog
+   elog "To create and configure a new weblog, run the following as your 
user:"
+   elog "   nb -b /some/dir -a"
+   elog "where /some/dir is a directory that DOES NOT exist."
+   elog
+   elog "To prevent having to specify your blog directory every time you 
use"
+   elog "nanoblogger (with the -b switch), you can set a default value in 
your"
+   elog "~/.nb.conf.  For example:"
+   elog '   BLOG_DIR="$HOME/public_html/blog"'
+   elog
+   elog "If you are upgrading nanoblogger from a previous version, follow"
+   elog "these directions (as stated in the manual):"
+   elog "1. create a new weblog directory using nanoblogger (skip 
configuration):"
+   elog "  nb [-b blog_dir] -a"
+   elog "2. copy old data directry to new weblog:"
+   elog "  cp -r [old_blog_dir]/data [newblog_dir]"
+   elog "3. edit new blog.conf to your liking and rebuild weblog:"
+   elog "  nb [-b blog_dir] --configure -u all"
+   elog
+   elog "You also should remove your [newblog_dir]/data/cat_1.db and run:"
+   elog "  nb -u all"
+   elog "after copying your old entries from [oldblog_dir]/data to"
+   elog "[newblog_dir]/data."
+   elog
+}