Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/nanoblogger/
Date: Mon, 05 Jun 2017 21:57:17
Message-Id: 1496699828.e4b5fdf4199b3880424c4182817cf2bbbb84b408.monsieurp@gentoo
1 commit: e4b5fdf4199b3880424c4182817cf2bbbb84b408
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 21:56:54 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 21:57:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b5fdf4
7
8 www-apps/nanoblogger: EAPI 6 bump.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild | 71 ++++++++++++++++++++++
13 1 file changed, 71 insertions(+)
14
15 diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
16 new file mode 100644
17 index 00000000000..60dc2700947
18 --- /dev/null
19 +++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
20 @@ -0,0 +1,71 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit bash-completion-r1
27 +
28 +MY_P="${P/_/-}"
29 +DESCRIPTION="Small and simple weblog engine written in Bash for the command-line"
30 +HOMEPAGE="http://nanoblogger.sourceforge.net/"
31 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~x86"
36 +
37 +RDEPEND="app-shells/bash"
38 +
39 +S="${WORKDIR}/${MY_P}"
40 +
41 +HTML=( docs/nanoblogger.html )
42 +DOCS=( ChangeLog )
43 +
44 +src_prepare() {
45 + default
46 + sed -i \
47 + -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
48 + -e 's|^\(NB_CFG_DIR=\).*$|\1"/etc"|' \
49 + -e "s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
50 + nb || die "sed nb failed"
51 +}
52 +
53 +src_install() {
54 + dobin nb
55 + insinto /usr/share/nanoblogger
56 + doins -r default moods plugins lib lang docs welcome-to-nb.txt
57 + insinto /etc
58 + doins nb.conf
59 + einstalldocs
60 + dobashcomp "${FILESDIR}"/nb.bashcomp
61 +}
62 +
63 +pkg_postinst() {
64 + elog
65 + elog "Documentation for getting started with nanoblogger may be found at"
66 + elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb --manual;."
67 + elog
68 + elog "To create and configure a new weblog, run the following as your user:"
69 + elog " nb -b /some/dir -a"
70 + elog "where /some/dir is a directory that DOES NOT exist."
71 + elog
72 + elog "To prevent having to specify your blog directory every time you use"
73 + elog "nanoblogger (with the -b switch), you can set a default value in your"
74 + elog "~/.nb.conf. For example:"
75 + elog ' BLOG_DIR="$HOME/public_html/blog"'
76 + elog
77 + elog "If you are upgrading nanoblogger from a previous version, follow"
78 + elog "these directions (as stated in the manual):"
79 + elog " 1. create a new weblog directory using nanoblogger (skip configuration):"
80 + elog " nb [-b blog_dir] -a"
81 + elog " 2. copy old data directry to new weblog:"
82 + elog " cp -r [old_blog_dir]/data [newblog_dir]"
83 + elog " 3. edit new blog.conf to your liking and rebuild weblog:"
84 + elog " nb [-b blog_dir] --configure -u all"
85 + elog
86 + elog "You also should remove your [newblog_dir]/data/cat_1.db and run:"
87 + elog " nb -u all"
88 + elog "after copying your old entries from [oldblog_dir]/data to"
89 + elog "[newblog_dir]/data."
90 + elog
91 +}