Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/nanoblogger: ChangeLog nanoblogger-3.4.2.ebuild
Date: Sun, 02 Oct 2011 04:56:06
Message-Id: 20111002045556.5F8B52004B@flycatcher.gentoo.org
1 radhermit 11/10/02 04:55:56
2
3 Modified: ChangeLog
4 Added: nanoblogger-3.4.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.26 www-apps/nanoblogger/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/nanoblogger/ChangeLog?rev=1.26&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/nanoblogger/ChangeLog?rev=1.26&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/nanoblogger/ChangeLog?r1=1.25&r2=1.26
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/ChangeLog,v
20 retrieving revision 1.25
21 retrieving revision 1.26
22 diff -u -r1.25 -r1.26
23 --- ChangeLog 6 Feb 2011 10:48:33 -0000 1.25
24 +++ ChangeLog 2 Oct 2011 04:55:56 -0000 1.26
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-apps/nanoblogger
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/ChangeLog,v 1.25 2011/02/06 10:48:33 leio Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/ChangeLog,v 1.26 2011/10/02 04:55:56 radhermit Exp $
30 +
31 +*nanoblogger-3.4.2 (02 Oct 2011)
32 +
33 + 02 Oct 2011; Tim Harder <radhermit@g.o> +nanoblogger-3.4.2.ebuild:
34 + Version bump.
35
36 06 Feb 2011; Mart Raudsepp <leio@g.o> nanoblogger-3.2.3.ebuild:
37 Drop to ~mips
38
39
40
41 1.1 www-apps/nanoblogger/nanoblogger-3.4.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.4.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.4.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nanoblogger-3.4.2.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.4.2.ebuild,v 1.1 2011/10/02 04:55:56 radhermit Exp $
51
52 EAPI=4
53
54 inherit bash-completion-r1
55
56 DESCRIPTION="Small and simple weblog engine written in Bash for the command-line"
57 HOMEPAGE="http://nanoblogger.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~x86"
63 IUSE=""
64
65 RDEPEND="app-shells/bash"
66
67 src_prepare() {
68 sed -i \
69 -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
70 -e 's|^\(NB_CFG_DIR=\).*$|\1"/etc"|' \
71 -e "s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
72 nb || die "sed nb failed"
73 }
74
75 src_install() {
76 dobin nb
77 insinto /usr/share/nanoblogger
78 doins -r default moods plugins lib lang docs welcome-to-nb.txt
79 insinto /etc
80 doins nb.conf
81 dodoc ChangeLog
82 dohtml docs/nanoblogger.html
83 dobashcomp "${FILESDIR}"/nb.bashcomp
84 }
85
86 pkg_postinst() {
87 elog
88 elog "Documentation for getting started with nanoblogger may be found at"
89 elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb --manual;."
90 elog
91 elog "To create and configure a new weblog, run the following as your user:"
92 elog " nb -b /some/dir -a"
93 elog "where /some/dir is a directory that DOES NOT exist."
94 elog
95 elog "To prevent having to specify your blog directory every time you use"
96 elog "nanoblogger (with the -b switch), you can set a default value in your"
97 elog "~/.nb.conf. For example:"
98 elog ' BLOG_DIR="$HOME/public_html/blog"'
99 elog
100 elog "If you are upgrading nanoblogger from a previous version, follow"
101 elog "these directions (as stated in the manual):"
102 elog " 1. create a new weblog directory using nanoblogger (skip configuration):"
103 elog " nb [-b blog_dir] -a"
104 elog " 2. copy old data directry to new weblog:"
105 elog " cp -r [old_blog_dir]/data [newblog_dir]"
106 elog " 3. edit new blog.conf to your liking and rebuild weblog:"
107 elog " nb [-b blog_dir] --configure -u all"
108 elog
109 elog "You also should remove your [newblog_dir]/data/cat_1.db and run:"
110 elog " nb -u all"
111 elog "after copying your old entries from [oldblog_dir]/data to"
112 elog "[newblog_dir]/data."
113 elog
114 bash-completion_pkg_postinst
115 }