/[gentoo-x86]/www-apps/nanoblogger/nanoblogger-3.3.ebuild
Gentoo

Contents of /www-apps/nanoblogger/nanoblogger-3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 2 05:07:58 2011 UTC (8 years, 9 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -2 lines
Remove unnecessary bashcomp lines.

(Portage version: 2.2.0_alpha60/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.3.ebuild,v 1.2 2011/10/02 04:59:24 radhermit Exp $
4
5 inherit bash-completion-r1
6
7 DESCRIPTION="Small and simple weblog engine written in Bash for the command-line"
8 HOMEPAGE="http://nanoblogger.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~x86"
14 IUSE=""
15
16 RDEPEND="app-shells/bash"
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21 sed -i \
22 -e 's|^\(NB_BASE_DIR=\).*$|\1"/usr/share/nanoblogger"|' \
23 -e 's|^\(NB_CFG_DIR=\).*$|\1"/etc"|' \
24 -e "s|\$NB_BASE_DIR.*\(nano.*html\)|/usr/share/doc/${PF}/html/\1|" \
25 nb || die "sed nb failed"
26 }
27
28 src_install() {
29 dobin nb
30 insinto /usr/share/nanoblogger
31 doins -r default moods plugins lib lang docs welcome-to-nb.txt
32 insinto /etc
33 doins nb.conf
34 dodoc ChangeLog
35 dohtml docs/nanoblogger.html
36 dobashcomp "${FILESDIR}"/nb.bashcomp || die
37 }
38
39 pkg_postinst() {
40 elog
41 elog "Documentation for getting started with nanoblogger may be found at"
42 elog "/usr/share/doc/${PF}/html/nanoblogger.html or by running 'nb --manual;."
43 elog
44 elog "To create and configure a new weblog, run the following as your user:"
45 elog " nb -b /some/dir -a"
46 elog "where /some/dir is a directory that DOES NOT exist."
47 elog
48 elog "To prevent having to specify your blog directory every time you use"
49 elog "nanoblogger (with the -b switch), you can set a default value in your"
50 elog "~/.nb.conf. For example:"
51 elog ' BLOG_DIR="$HOME/public_html/blog"'
52 elog
53 elog "If you are upgrading nanoblogger from a previous version, follow"
54 elog "these directions (as stated in the manual):"
55 elog " 1. create a new weblog directory using nanoblogger (skip configuration):"
56 elog " nb [-b blog_dir] -a"
57 elog " 2. copy old data directry to new weblog:"
58 elog " cp -r [old_blog_dir]/data [newblog_dir]"
59 elog " 3. edit new blog.conf to your liking and rebuild weblog:"
60 elog " nb [-b blog_dir] --configure -u all"
61 elog
62 elog "You also should remove your [newblog_dir]/data/cat_1.db and run:"
63 elog " nb -u all"
64 elog "after copying your old entries from [oldblog_dir]/data to"
65 elog "[newblog_dir]/data."
66 elog
67 }

  ViewVC Help
Powered by ViewVC 1.1.20