summaryrefslogtreecommitdiff
path: root/www-apps/nanoblogger
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/nanoblogger
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/nanoblogger')
-rw-r--r--www-apps/nanoblogger/Manifest11
-rw-r--r--www-apps/nanoblogger/files/nb.bashcomp47
-rw-r--r--www-apps/nanoblogger/metadata.xml23
-rw-r--r--www-apps/nanoblogger/nanoblogger-3.2.3.ebuild61
-rw-r--r--www-apps/nanoblogger/nanoblogger-3.3.ebuild66
-rw-r--r--www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild70
-rw-r--r--www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild69
7 files changed, 347 insertions, 0 deletions
diff --git a/www-apps/nanoblogger/Manifest b/www-apps/nanoblogger/Manifest
new file mode 100644
index 000000000000..a64b5335b4c5
--- /dev/null
+++ b/www-apps/nanoblogger/Manifest
@@ -0,0 +1,11 @@
+AUX nb.bashcomp 1275 SHA256 001accd891e72c8e46d37f9e86f71de6b3e17d0b653edfae1f151b88fed164f7 SHA512 004db772c4f97870ebdbe378adc26f70ce42f8f28b68bed53fcbe2df4d95ce38e4a2608fee94ae17b1f057c28859a321cceb6cdd4f849845b5902ad048541c8e WHIRLPOOL f6fc16af385c850d8db5debb578e0d5e4d9f137e6bae9115aa533ec9ee0965654939056cd0051187d58658215166d2eec6ef796d73e2c10dad3b3663b6cf5137
+DIST nanoblogger-3.2.3.tar.gz 54672 SHA256 9b1d51060e9f0f8db7119546c8dbb915c0dd214ed970844705d8738616c9029b SHA512 5cd771d1621a6e5fdb60cf34f294e93596584d7535d4a89a98fd8332c85b58e70715a9bf34e46839a1756a8827f37f998f105ba1e494cabefb780e81f6deb8d7 WHIRLPOOL 84ce2b8431d11a7e47aa8d19c9214e11f10ff1fe8a8a09ea2436bc51a9884e246b79cd8dcd7b046027104f53675af41d95a588592f08865955a4e51b17c7c156
+DIST nanoblogger-3.3.tar.gz 82302 SHA256 b49b25ee18c42dc9cf47fdd456e5dd19033456c64104a0ccba34e318e5daf1a0 SHA512 7de711a69ba0db7dd006902c335ce32773b8d02716048802487f683353702cebd164c059ce0a920856ab49a2b833d6524b6c0981d188c5874f42f6b2a6435f7d WHIRLPOOL 8e04673d72c6774f83ad2f97ddf0519e9ebce5bdaf785e45fc80ddc7a7257d4bdd2ca5b0832029ed15dc4fbc443faee94bac8666a4af0afdfa05d03c8515e8e3
+DIST nanoblogger-3.5-rc1.tar.gz 131833 SHA256 78f51b852238adc1cf1287f4a95d56c954fb3dced1a48eb46a0302579428bb26 SHA512 03a590b1bdf3adb9969e2ce6fda89ece99f33def9f46e1028d2c0724a86f47696c703a5a3bb3c4b1c34418b841702a15bae527cc94eba377ee2003203582de2f WHIRLPOOL 67ead0ccd68c71cd845f93909d719b585604b3c2703be05150190defa2d977784d7d37bd3c6824dbb1438931eb951783a4ad9652f5fa3dc80a9766df0bc9bdbe
+EBUILD nanoblogger-3.2.3.ebuild 1976 SHA256 1b3fc63cd189054e9e2f040eb7a9ce47780e618035f293a6d92e6df338697dda SHA512 f2c210fa7c0b157c55a4151f73a54c55cfb00913e59c278acda96a81e8fed84ef759f74b3ab069fc1243fcf337fd712ce26052b83b61aff35e042ccf93aeee48 WHIRLPOOL fdd45fe91edb3f16f52ee7fc86ef162709e457612d63ddf490f04fd38632a34cc9a6e482db0529b2b6395b16ea6009fc97777c2832497436eefffe553c452725
+EBUILD nanoblogger-3.3.ebuild 2196 SHA256 0d002a741c7d38d43087eee1c1db6d20b8f70ac5625d63b7769502cba7867ff1 SHA512 9b44ce33846797aa323977f277c63dfe00974ecad63f0026b18c68f7f3f13ff914b19882763e104ffeeffd26405cb046df9737d56fc4ddfc2cb807e336256215 WHIRLPOOL 06ab839a798da4e3f0a63ae61c1bb3cb74d7ea64da86fb04cca9836f2e0a2c72c48d690e57833f0c984766e41ac7a314b2816954f50ba69ba968d89ba7db30f4
+EBUILD nanoblogger-3.5_rc1-r1.ebuild 2222 SHA256 1a4db460f4365d3249ea2f5a729620545e2b861c2188ffb36ea5c296566db17a SHA512 4d4f953b77fa166b51ab55a16a3d01d0df8594aaa60ab86101d219090f8dc00eebd58e6e90d8e7ad93e1d8dafc5b3cc0d23f6e2990619f35918a7ddab80d3581 WHIRLPOOL 995bd9983cdfa8be5a4a6b49523367c4894681735bfa5a06dd645d4e9b6ea78ebb1f356504b7e84a2fe2e9ed55435deea7fcb3468bb49764d3a2421715cd4bb3
+EBUILD nanoblogger-3.5_rc1.ebuild 2217 SHA256 84c3378d592a165163ea47d784ee0c430306b420439015cb6dcd241f8cca8560 SHA512 ccfce25bfeb31b87aea68d78f86e0a63b162e0a2ee290045181f69bf73809658b1f82a607221624a71c5d1158e6aa424bfd2708df027691e2554ca067f8aa672 WHIRLPOOL f83e7a056ea27ae145fd766b635a2b7509af0241d46c74c7dcb06de6b5a76329a70835c3312caf1f26ac609f4d33e41bcfce5ead474deba9104b984e427581d2
+MISC ChangeLog 2581 SHA256 454df5757a666184d50a633dcbd197881c060bbf14746235fdd786f9adfebd45 SHA512 51d3a7cd37758e937b057073f841de86d60234a6643ff58ff3bede89965bfb55d1e062948a6a7e979fa9f760bcdbfa176cbe7d4d9ca2fe9c743432ed5991e995 WHIRLPOOL eb8423f242a5b2fa2e5f55f0f355d3c7232a304ad924f0691ac45cac20e64903d399bf75f63c96ac1773bedc7b0dcf464aae7f0665f162df867904de6380bf05
+MISC ChangeLog-2015 4379 SHA256 45dcff8f57e2b81ca4695058cf89e98b3fe95e4b16e0fd352661f116ced78b5a SHA512 19022709b4b647e446b17ab328178fc50b1b0e192abab9f77a16528182445f7365cfa76ab95f0c8b212b1baa4c66ce96bc7fc5a95aac7614882f9ff205310092 WHIRLPOOL a9308daebea2dc31581c25c205cfdba4d938d8f416cc6a08fb5e99ced0aafff649038f020c688e6b0babff51b1412056d4ca84bc412dbcaaf4aa702c27dcbb0c
+MISC metadata.xml 1158 SHA256 1ed7013cadf8bbb16182b96398674baa5f1dcdd9db087fa0ee8293fa4df626b1 SHA512 51fefdaaa979d1625c710655dcd2cf6bb2f1f0143f533b2b2ce1ee8022b6bfac20c9cc92dbd125aac5b19878df28e735f70653f75331c86f7152c194d37994f5 WHIRLPOOL 02f311189d754db991103668742340dd7174b157b5e9a1b2893959f1989ab341db09ea979684d1492654f3ea4f0975b0415d13c1a5b890c216c1d80b46c6152f
diff --git a/www-apps/nanoblogger/files/nb.bashcomp b/www-apps/nanoblogger/files/nb.bashcomp
new file mode 100644
index 000000000000..4e3c5606b1c0
--- /dev/null
+++ b/www-apps/nanoblogger/files/nb.bashcomp
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# nanoblogger completion
+# author: Aaron Walker <ka0ttic@gentoo.org>
+
+_nb()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-a --add -b --blogdir -B --body -c --category --configure \
+ --datadir -d --delete -D --desc -e --edit -f --blogconf -h --help \
+ -l --list --makepage --manual -m --move -n --author -p --preview \
+ -P --publish --template --templatedir -t --title -u --update \
+ -v --verbose -V --version"
+
+ if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
+ return 0
+ fi
+
+ case "${prev}" in
+ -b|--*dir)
+ COMPREPLY=($(compgen -d -S '/' -- ${cur}))
+ ;;
+ -f|--blogconf|--template)
+ COMPREPLY=($(compgen -f -- ${cur}))
+ ;;
+ -l|--list)
+ COMPREPLY=($(compgen -W "all cat current max" -- ${cur}))
+ ;;
+ -u|--update)
+ COMPREPLY=($(compgen -W "all current main max" -- ${cur}))
+ ;;
+ ?(-)-@(B|body|c|category|d|delete|D|desc|m|move|n|author|t|title))
+ COMPREPLY=()
+ ;;
+ *)
+ COMPREPLY=($(compgen -W "${opts/${prev}}" -- ${cur}))
+ ;;
+ esac
+}
+complete -F _nb nb
+
+# vim: set ft=sh :
diff --git a/www-apps/nanoblogger/metadata.xml b/www-apps/nanoblogger/metadata.xml
new file mode 100644
index 000000000000..438e4ce281b4
--- /dev/null
+++ b/www-apps/nanoblogger/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+ </maintainer>
+ <longdescription lang="en">
+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
+for multiple weblogs, support for multiple categories, archiving by category,
+entry, and month, pagination, permanent links, RSS syndication (1.0 and 2.0),
+Atom syndication (0.3), templates and CSS style sheets for full control over
+appearance, placeholders for easy template manipulation, plugins for calendar,
+recent entries, weblog status, fortunes, etc, auto-formatting of HTML, support
+for relative and absolute links, per-weblog configuration, simple cache system
+for faster content generation, auto-detection of weblog by current directory, no
+database dependencies (uses flat-file), and mutliplatform portability.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">nanoblogger</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild b/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
new file mode 100644
index 000000000000..0a57d0807f66
--- /dev/null
+++ b/www-apps/nanoblogger/nanoblogger-3.2.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
diff --git a/www-apps/nanoblogger/nanoblogger-3.3.ebuild b/www-apps/nanoblogger/nanoblogger-3.3.ebuild
new file mode 100644
index 000000000000..b305d681bb49
--- /dev/null
+++ b/www-apps/nanoblogger/nanoblogger-3.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-r1.ebuild b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
new file mode 100644
index 000000000000..f090ae374974
--- /dev/null
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1-r1.ebuild
@@ -0,0 +1,70 @@
+# 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=( docs/nanoblogger.html )
+
+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
+}
diff --git a/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild b/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild
new file mode 100644
index 000000000000..1356e0e70101
--- /dev/null
+++ b/www-apps/nanoblogger/nanoblogger-3.5_rc1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+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"
+IUSE=""
+
+RDEPEND="app-shells/bash"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ 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
+}
+
+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
+}