diff options
-rw-r--r-- | app-admin/pass/pass-9999.ebuild | 30 | ||||
-rw-r--r-- | app-vim/nginx-syntax/nginx-syntax-9999.ebuild | 6 | ||||
-rw-r--r-- | dev-tex/dot2tex/Manifest | 1 | ||||
-rw-r--r-- | dev-tex/dot2tex/dot2tex-2.11.3.ebuild | 43 | ||||
-rw-r--r-- | dev-util/itstool/Manifest | 1 | ||||
-rw-r--r-- | dev-util/itstool/itstool-2.0.6.ebuild | 26 | ||||
-rw-r--r-- | dev-vcs/stgit/Manifest | 1 | ||||
-rw-r--r-- | dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch | 11 | ||||
-rw-r--r-- | dev-vcs/stgit/stgit-0.18.ebuild | 88 | ||||
-rw-r--r-- | net-libs/webkit-gtk/Manifest | 2 | ||||
-rw-r--r-- | net-libs/webkit-gtk/webkit-gtk-2.4.11-r201.ebuild | 16 | ||||
-rw-r--r-- | net-news/feed2imap/feed2imap-9999.ebuild | 31 | ||||
-rw-r--r-- | www-apps/baikal/Manifest | 1 | ||||
-rw-r--r-- | www-apps/baikal/baikal-0.6.1.ebuild | 57 | ||||
-rw-r--r-- | www-apps/baikal/files/postinstall-en.txt | 5 | ||||
-rw-r--r-- | www-apps/cgit/cgit-9999.ebuild | 80 | ||||
-rw-r--r-- | www-apps/cgit/files/cgitrc | 126 | ||||
-rw-r--r-- | www-apps/cgit/files/postinstall-en.txt | 45 |
18 files changed, 177 insertions, 393 deletions
diff --git a/app-admin/pass/pass-9999.ebuild b/app-admin/pass/pass-9999.ebuild index 3a316d2..9a600c7 100644 --- a/app-admin/pass/pass-9999.ebuild +++ b/app-admin/pass/pass-9999.ebuild @@ -1,14 +1,13 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# $Id$ EAPI=5 -inherit bash-completion-r1 git-2 elisp-common +inherit bash-completion-r1 git-r3 elisp-common -DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git" -HOMEPAGE="http://www.passwordstore.org/" -EGIT_REPO_URI="git://git.necoro.eu/others/pass.git" +DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely" +HOMEPAGE="https://www.passwordstore.org/" +EGIT_REPO_URI="https://git.necoro.eu/others/pass.git" EGIT_BRANCH="necoro" SLOT="0" @@ -18,7 +17,7 @@ IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" RDEPEND=" app-crypt/gnupg - app-admin/pwgen + media-gfx/qrencode >=app-text/tree-1.7.0 git? ( dev-vcs/git ) X? ( x11-misc/xclip ) @@ -26,11 +25,9 @@ RDEPEND=" zsh-completion? ( app-shells/gentoo-zsh-completions ) fish-completion? ( app-shells/fish ) dmenu? ( x11-misc/dmenu x11-misc/xdotool ) - emacs? ( virtual/emacs ) + emacs? ( >=app-editors/emacs-23.1:* ) " -S="${WORKDIR}/password-store-${PV}" - src_prepare() { use elibc_Darwin || return # use coreutils' @@ -46,11 +43,14 @@ src_compile() { } src_install() { - use zsh-completion && export FORCE_ZSHCOMP=1 - use fish-completion && export FORCE_FISHCOMP=1 - emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + BASHCOMPDIR="$(get_bashcompdir)" \ + WITH_BASHCOMP=yes \ + WITH_ZSHCOMP=$(usex zsh-completion) \ + WITH_FISHCOMP=$(usex fish-completion) use dmenu && dobin contrib/dmenu/passmenu - newbashcomp src/completion/pass.bash-completion pass if use emacs; then elisp-install ${PN} contrib/emacs/*.el elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" @@ -66,7 +66,7 @@ pkg_postinst() { if use importers; then einfo "To import passwords from other password managers, you may use the" einfo "various importer scripts found in:" - einfo " ${ROOT}usr/share/${PN}/importers/" + einfo " ${EROOT%/}/usr/share/${PN}/importers/" fi } diff --git a/app-vim/nginx-syntax/nginx-syntax-9999.ebuild b/app-vim/nginx-syntax/nginx-syntax-9999.ebuild index 5e4a82f..cead970 100644 --- a/app-vim/nginx-syntax/nginx-syntax-9999.ebuild +++ b/app-vim/nginx-syntax/nginx-syntax-9999.ebuild @@ -2,14 +2,14 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-vim/nginx-syntax/nginx-syntax-0.3.2.ebuild,v 1.6 2013/02/18 14:29:10 aballier Exp $ -EAPI="5" +EAPI="7" -inherit vim-plugin git-2 +inherit vim-plugin git-r3 DESCRIPTION="vim plugin: Nginx configuration files syntax" HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=1886" SRC_URI="" -EGIT_REPO_URI="git://github.com/Necoro/nginx-vim-syntax.git" +EGIT_REPO_URI="https://github.com/Necoro/nginx-vim-syntax.git" LICENSE="vim.org" KEYWORDS="amd64 ppc x86 ~amd64-fbsd" IUSE="" diff --git a/dev-tex/dot2tex/Manifest b/dev-tex/dot2tex/Manifest new file mode 100644 index 0000000..3e2b883 --- /dev/null +++ b/dev-tex/dot2tex/Manifest @@ -0,0 +1 @@ +DIST dot2tex-2.11.3.tar.gz 664750 BLAKE2B 9c7effeca0d71810ce37e126df9e7df2b9df19be41393916c85e49df0dc116f42e58a2b29cce9e2bac700fa00859c63c1a4a8c41c70a9db96a5fc210960f463b SHA512 1595299811461b18cff490a8a56c0215f46989dd4a46fa087b455c717ed5d5f7a5782d04acaa3e4567b4e348bca866d5f24d21663012c4cd813445804ef6f714 diff --git a/dev-tex/dot2tex/dot2tex-2.11.3.ebuild b/dev-tex/dot2tex/dot2tex-2.11.3.ebuild new file mode 100644 index 0000000..43787ab --- /dev/null +++ b/dev-tex/dot2tex/dot2tex-2.11.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_5 python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="A Graphviz to LaTeX converter" +HOMEPAGE="https://dot2tex.readthedocs.org/ https://github.com/kjellmf/dot2tex" +SRC_URI="https://github.com/kjellmf/dot2tex/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="doc examples" + +DEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]" +RDEPEND=" + dev-python/pydot[${PYTHON_USEDEP}] + media-gfx/graphviz" +DEPEND="${DEPEND} + doc? ( dev-python/sphinx )" + +python_compile_all() { + if use doc ; then + cd "${S}/docs" + emake html + fi +} + +python_install_all() { + distutils-r1_python_install_all + + if use doc; then + dohtml -r docs/_build/html/* + fi + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-util/itstool/Manifest b/dev-util/itstool/Manifest new file mode 100644 index 0000000..4a22341 --- /dev/null +++ b/dev-util/itstool/Manifest @@ -0,0 +1 @@ +DIST itstool-2.0.6.tar.bz2 103067 BLAKE2B 72d3254cb88ef9d02f9b3509a46c2208e98bf6327f139e5d29b99cc6d80651bd41ea3bfb78e48e23cf7c217770cd8c6c74b00946ad9d2608a92925e43457edf0 SHA512 51058bdcb208f6fb84810f71f9bf67e42b00bf157a9756be45f060849c0aff36f695f4403404193720d4446818fa77de61fa94eed9e8789d26c07a2926072eb7 diff --git a/dev-util/itstool/itstool-2.0.6.ebuild b/dev-util/itstool/itstool-2.0.6.ebuild new file mode 100644 index 0000000..e811060 --- /dev/null +++ b/dev-util/itstool/itstool-2.0.6.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +PYTHON_REQ_USE="xml" + +inherit python-single-r1 + +DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" +HOMEPAGE="http://itstool.org/" +SRC_URI="http://files.itstool.org/itstool/${P}.tar.bz2" + +# files in /usr/share/itstool/its are HPND/as-is || GPL-3 +LICENSE="GPL-3+ || ( HPND GPL-3+ )" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-linux" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libxml2[python,${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +DOCS=( ChangeLog NEWS ) # AUTHORS, README are empty diff --git a/dev-vcs/stgit/Manifest b/dev-vcs/stgit/Manifest deleted file mode 100644 index 28dd255..0000000 --- a/dev-vcs/stgit/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST stgit-0.18.tar.gz 235852 BLAKE2B ff35856c1f20a6a611a2faa22ba573b1c33636c9e913322456011c4c5a73c3207ddbd8bfe41cb81b11dffe8db8b89594c1598989ae9fb896cd686594a21d96b2 SHA512 5820cc1a8cdd5183fbe309b4b80568098844ff57934c75a43263b5cfcdac4b64e015abc9ed6a53dd856236d76bd0ebeec31e87561bca0d0d82a6e5ec7a10745f diff --git a/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch b/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch deleted file mode 100644 index 559cf8f..0000000 --- a/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Documentation/Makefile 2012-07-08 23:55:38.958779174 +0200 -+++ b/Documentation/Makefile 2012-07-08 23:56:42.638010483 +0200 -@@ -72,7 +72,7 @@ - $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $< - - %.1 : %.xml -- xmlto -m callouts.xsl man $< -+ xmlto -m callouts.xsl --stringparam man.base.url.for.relative.links=$(htmldir) man $< - - %.xml : %.txt - $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf $< diff --git a/dev-vcs/stgit/stgit-0.18.ebuild b/dev-vcs/stgit/stgit-0.18.ebuild deleted file mode 100644 index 9a40c47..0000000 --- a/dev-vcs/stgit/stgit-0.18.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) - -inherit bash-completion-r1 distutils-r1 - -DESCRIPTION="Manage a stack of patches using GIT as a backend" -HOMEPAGE="http://www.procode.org/stgit/" -UPSTREAM_VER= -[[ -n ${UPSTREAM_VER} ]] && \ - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" - -SRC_URI="https://github.com/ctmarinas/stgit/archive/v${PV}.tar.gz -> ${P}.tar.gz - ${UPSTREAM_PATCHSET_URI}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc" - -RDEPEND=">=dev-vcs/git-1.6.3.3" - -# NOTE: It seems to be quite important which asciidoc version to use. -# So keep an eye on it for the future. -DEPEND="${RDEPEND} - doc? ( - app-text/asciidoc - app-text/xmlto - dev-lang/perl - )" - -PATCHES=( - "${FILESDIR}/${PN}-0.16-man-linkfix.patch" -) - -pkg_setup() { - if ! use doc; then - echo - ewarn "Manpages will not be built and installed." - ewarn "Enable the 'doc' useflag, if you want them." - echo - fi -} - -python_prepare_all() { - # Upstream's patchset - [[ -n ${UPSTREAM_VER} ]] && \ - eapply "${WORKDIR}"/patches-upstream - - # this will be a noop, as we are working with a tarball, - # but throws git errors --> just get rid of it - sed -i -e 's/version\.write_builtin_version()//' setup.py || die - - # write version ourselves - if [[ ! -f stgit/builtin_version.py ]]; then - echo "version = '${PV}'" > stgit/builtin_version.py - fi - - distutils-r1_python_prepare_all -} - -src_compile() { - distutils-r1_src_compile - - # bug 526468 - if use doc; then - emake DESTDIR="${D}" \ - htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \ - mandir="${EPREFIX}/usr/share/man/" \ - doc - fi -} - -src_install() { - if use doc; then - emake DESTDIR="${D}" \ - htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \ - mandir="${EPREFIX}/usr/share/man/" \ - install-doc install-html - fi - - distutils-r1_src_install - - newbashcomp stgit-completion.bash 'stg' -} diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest index 9a6c215..85a1fc6 100644 --- a/net-libs/webkit-gtk/Manifest +++ b/net-libs/webkit-gtk/Manifest @@ -1 +1 @@ -DIST webkitgtk-2.4.11.tar.xz 9869100 SHA256 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb WHIRLPOOL de86c4abfb22aacbf62163d0398158931c9cf6ab628547d3b30e613f0505d67c85c3200f7db96500e7c2b35f640cdaa7f501346fc13f492c9439dff4056849a3 +DIST webkitgtk-2.4.11.tar.xz 9869100 BLAKE2B 9b1351976dc753025e6aba86a40f97fdf58821a6a7af109140a18adc7a0e1d8c140711b48bceeb3c4c189e7d52f258520623c7d971c46b6f2572c0e1de0d0100 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r201.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r201.ebuild index 8bef588..af8aad9 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r201.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r201.ebuild @@ -3,7 +3,7 @@ EAPI="6" PYTHON_COMPAT=( python2_7 ) -USE_RUBY="ruby20 ruby21 ruby22 ruby23" +USE_RUBY="ruby22 ruby23 ruby24" inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx @@ -172,6 +172,12 @@ src_configure() { # Respect CC, otherwise fails on prefix #395875 tc-export CC + # revert icu behavior + append-cxxflags -DUPRV_BLOCK_MACRO_BEGIN=\"\" -DUPRV_BLOCK_MACRO_END=\"\" + + # disable warnings + append-cxxflags -w + # Arches without JIT support also need this to really disable it in all places use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 @@ -196,14 +202,12 @@ src_configure() { local ruby_interpreter="" - if has_version "virtual/rubygems[ruby_targets_ruby23]"; then + if has_version "virtual/rubygems[ruby_targets_ruby24]"; then + ruby_interpreter="RUBY=$(type -P ruby24)" + elif has_version "virtual/rubygems[ruby_targets_ruby23]"; then ruby_interpreter="RUBY=$(type -P ruby23)" elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then ruby_interpreter="RUBY=$(type -P ruby22)" - elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then - ruby_interpreter="RUBY=$(type -P ruby21)" - else - ruby_interpreter="RUBY=$(type -P ruby20)" fi # TODO: Check Web Audio support diff --git a/net-news/feed2imap/feed2imap-9999.ebuild b/net-news/feed2imap/feed2imap-9999.ebuild index e6f8cbb..88c62e3 100644 --- a/net-news/feed2imap/feed2imap-9999.ebuild +++ b/net-news/feed2imap/feed2imap-9999.ebuild @@ -2,12 +2,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=5 -USE_RUBY="ruby24" +EAPI=7 +USE_RUBY="ruby25" -EGIT_REPO_URI="git://git.necoro.eu/others/feed2imap" -EGIT_BRANCH="ruby22" -inherit git-2 ruby-ng +EGIT_REPO_URI="https://git.necoro.eu/others/feed2imap.git" +EGIT_BRANCH="necoro" +inherit git-r3 ruby-single DESCRIPTION="RSS/Atom feed aggregator which uploads feeds to an IMAP server" HOMEPAGE="http://home.gna.org/feed2imap/" @@ -17,21 +17,18 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -RDEPEND="dev-ruby/ruby-feedparser +RDEPEND="${RUBY_DEPS} + dev-ruby/ruby-feedparser dev-ruby/mail" -all_ruby_unpack() { - git-2_src_unpack -} - -each_ruby_configure() { - ${RUBY} setup.rb config || die -} +BDEPEND="${RDEPEND}" +DOCS="ChangeLog README" -each_ruby_install() { - ${RUBY} setup.rb install --prefix="${D}" || die +src_configure() { + ruby setup.rb config || die } -all_ruby_install() { - dodoc ChangeLog README || die +src_install() { + ruby setup.rb install --prefix="${D}" || die + einstalldocs } diff --git a/www-apps/baikal/Manifest b/www-apps/baikal/Manifest new file mode 100644 index 0000000..55f90f9 --- /dev/null +++ b/www-apps/baikal/Manifest @@ -0,0 +1 @@ +DIST baikal-0.6.1.zip 3437686 BLAKE2B f28d3a63166a73571116759df3662c2b19c2eeeebcd7070574dfc3ee8cb046f2d94fdbc4701669291c1bb2cb2b9b92665726127c852c5457cd285f6ffbcc9b00 SHA512 d88ed9fbe1f934d52fd798165675b90972c47c9e138de61e17a14777590ebad5006c1a414a4e0119eb8fa718e01f2aadb6e1d180e23a51fb33e1b5a3539c9e38 diff --git a/www-apps/baikal/baikal-0.6.1.ebuild b/www-apps/baikal/baikal-0.6.1.ebuild new file mode 100644 index 0000000..7984fe2 --- /dev/null +++ b/www-apps/baikal/baikal-0.6.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit webapp + +DESCRIPTION="Lightweight CalDAV+CardDAV server" +HOMEPAGE="http://sabre.io/baikal/" +SRC_URI="https://github.com/sabre-io/Baikal/releases/download/${PV}/${P}.zip" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~arm ~ppc64" +IUSE="+mysql sqlite" +REQUIRED_USE="|| ( mysql sqlite )" + +DEPEND="app-arch/unzip" +RDEPEND=">=dev-lang/php-6[ctype,filter,json,pdo,session,xml,xmlreader,xmlwriter,mysql?,sqlite?] + mysql? ( virtual/mysql ) + sqlite? ( dev-db/sqlite ) + virtual/httpd-php" + +S=${WORKDIR}/${PN} + +src_install() { + webapp_src_preinst + + dodoc *.md || die "dodoc failed" + + einfo "Installing web files" + insinto "${MY_HTDOCSDIR}" + doins -r html/* html/.htaccess Core vendor || die "doins failed" + + einfo "Setting up container for configuration" + insinto /etc/${PN} + + einfo "Fixing symlinks" + local link target + find "${D}${MY_HTDOCSDIR}" -type l | while read link ; do + target=$(readlink "${link}") + target=${target/..\/Core/Core} + rm "${link}" && ln -s "${target}" "${link}" + done + dosym /etc/${PN} "${MY_HTDOCSDIR}"/Specific + dosym . "${MY_HTDOCSDIR}"/html + + webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt" + webapp_src_install + + if has_version www-servers/apache ; then + fowners -R apache:apache /etc/${PN} + elif has_version www-servers/nginx ; then + fowners -R nginx:nginx /etc/${PN} + else + einfo "/etc/${PN} must be owned by the webserver user for baikal" + fi +} diff --git a/www-apps/baikal/files/postinstall-en.txt b/www-apps/baikal/files/postinstall-en.txt new file mode 100644 index 0000000..e6a1127 --- /dev/null +++ b/www-apps/baikal/files/postinstall-en.txt @@ -0,0 +1,5 @@ +In order to setup baikal: +- create /etc/${PN}/ENABLE_INSTALL owner apache:apache +- point your browser at the instal's URL and follow the setup +To upgrade baikal, you have to follow the setup instructions +If you're upgrading from 0.2.7, see http://sabre.io/baikal/upgrade/ diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-9999.ebuild deleted file mode 100644 index c312128..0000000 --- a/www-apps/cgit/cgit-9999.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-9999.ebuild,v 1.5 2012/06/01 04:30:38 zmedico Exp $ - -EAPI="4" - -WEBAPP_MANUAL_SLOT="yes" - -inherit webapp multilib user git-2 - -[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/" - -GIT_V="1.7.4" - -DESCRIPTION="a fast web-interface for git repositories" -HOMEPAGE="http://hjemli.net/git/cgit/about/" -SRC_URI="" -EGIT_REPO_URI="git://git.necoro.eu/others/${PN}" -EGIT_BRANCH="necoro" -EGIT_HAS_SUBMODULES="yes" -EGIT_PRUNE="yes" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE="doc highlight" - -RDEPEND=" - dev-vcs/git - sys-libs/zlib - dev-libs/openssl - virtual/httpd-cgi - highlight? ( app-text/highlight ) -" -# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken -DEPEND="${RDEPEND} - !<www-apps/cgit-0.8.3.3 - doc? ( app-text/docbook-xsl-stylesheets - >=app-text/asciidoc-8.5.1 ) -" - -pkg_setup() { - webapp_pkg_setup - enewuser "${PN}" -} - -src_compile() { - emake - use doc && emake doc-man -} - -src_install() { - webapp_src_preinst - - emake \ - prefix="${EPREFIX}"/usr \ - libdir="${EPREFIX}"/usr/$(get_libdir) \ - CGIT_SCRIPT_PATH="${MY_CGIBINDIR}" \ - CGIT_DATA_PATH="${MY_HTDOCSDIR}" \ - DESTDIR="${D}" install - - insinto /etc - doins "${FILESDIR}"/cgitrc - - dodoc README - use doc && doman cgitrc.5 - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_src_install - - keepdir "${CGIT_CACHEDIR}" - #fowners ${PN}:${PN} "${CGIT_CACHEDIR}" - #fperms 700 "${CGIT_CACHEDIR}" -} - -pkg_postinst() { - webapp_pkg_postinst - ewarn "If you intend to run cgit using web server's user" - ewarn "you should change ${CGIT_CACHEDIR} permissions." -} diff --git a/www-apps/cgit/files/cgitrc b/www-apps/cgit/files/cgitrc deleted file mode 100644 index a3eba11..0000000 --- a/www-apps/cgit/files/cgitrc +++ /dev/null @@ -1,126 +0,0 @@ -# Enable caching of up to 1000 output entriess -#cache-size=1000 - - -# Specify some default clone prefixes -#clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git - -# Specify the css url -#css=/css/cgit.css - - -# Show extra links for each repository on the index page -#enable-index-links=1 - - -# Enable ASCII art commit history graph on the log pages -#enable-commit-graph=1 - - -# Show number of affected files per commit on the log pages -#enable-log-filecount=1 - - -# Show number of added/removed lines per commit on the log pages -#enable-log-linecount=1 - - -# Add a cgit favicon -#favicon=/favicon.ico - - -# Use a custom logo -#logo=/img/mylogo.png - - -# Enable statistics per week, month and quarter -#max-stats=quarter - - -# Set the title and heading of the repository index page -#root-title=foobar.com git repositories - - -# Set a subheading for the repository index page -#root-desc=tracking the foobar development - - -# Include some more info about foobar.com on the index page -#root-readme=/var/www/htdocs/about.html - - -# Allow download of tar.gz, tar.bz2 and zip-files -#snapshots=tar.gz tar.bz2 zip - - -## -## List of common mimetypes -## - -#mimetype.gif=image/gif -#mimetype.html=text/html -#mimetype.jpg=image/jpeg -#mimetype.jpeg=image/jpeg -#mimetype.pdf=application/pdf -#mimetype.png=image/png -#mimetype.svg=image/svg+xml - - -## -## List of repositories. -## PS: Any repositories listed when section is unset will not be -## displayed under a section heading -## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') -## and included like this: -## include=/etc/cgitrepos -## - - -#repo.url=foo -#repo.path=/pub/git/foo.git -#repo.desc=the master foo repository -#repo.owner=fooman@foobar.com -#repo.readme=info/web/about.html - - -#repo.url=bar -#repo.path=/pub/git/bar.git -#repo.desc=the bars for your foo -#repo.owner=barman@foobar.com -#repo.readme=info/web/about.html - - -# The next repositories will be displayed under the 'extras' heading -#section=extras - - -#repo.url=baz -#repo.path=/pub/git/baz.git -#repo.desc=a set of extensions for bar users - -#repo.url=wiz -#repo.path=/pub/git/wiz.git -#repo.desc=the wizard of foo - - -# Add some mirrored repositories -#section=mirrors - - -#repo.url=git -#repo.path=/pub/git/git.git -#repo.desc=the dscm - - -#repo.url=linux -#repo.path=/pub/git/linux.git -#repo.desc=the kernel - -# Disable adhoc downloads of this repo -#repo.snapshots=0 - -# Disable line-counts for this repo -#repo.enable-log-linecount=0 - -# Restrict the max statistics period for this repo -#repo.max-stats=month diff --git a/www-apps/cgit/files/postinstall-en.txt b/www-apps/cgit/files/postinstall-en.txt deleted file mode 100644 index b164123..0000000 --- a/www-apps/cgit/files/postinstall-en.txt +++ /dev/null @@ -1,45 +0,0 @@ -There is a few variants of configuration: -1) Via global config file: /etc/cgitrc -2) Or via local config file, shipped in ./conf dir into webapp_dir. It has to - be explicitly specified with CGIT_CONFIG env variable in your web server - configuration. - -If you would like to update the list of git repositories in cgit automatically, -you might consider adding something similar to the following as a cronjob: - -"${MY_CGIBINDIR}/cgit.cgi --scan-tree=/git/repo-parent-path > /etc/cgit-repos" - -Then add "include=/etc/cgit-repos" in /etc/cgitrc. This way it's simpler and -more convenient. You won't need to update your cgitrc every time you add a new -repository. - -=============================================================================== - Apache HowTo -=============================================================================== - -With a default apache vhost config you can now access your repository at -http://<vhostname>/cgi-bin/cgit.cgi/ - -If you wish to access your repository starting from the root and don't want -'cgi-bin/cgit.cgi' to be invisible, 2 things are needed. - -In your apache vhost configuration file for your domain, add the following -rewrite rules to your -<Directory /var/www/<vhostname>/htdocs> section. -<snip> - RewriteEngine On - # Redirect all non-existant urls to cgit - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^.* /cgi-bin/cgit.cgi/$0 [L,PT] - - # Redirect the empty url to cgit - RewriteRule ^$ /cgi-bin/cgit.cgi/ [L,PT] -<snip> - -To make cgit create the correct URL's internally add to /etc/cgitrc (or your -local config file) -Enable virtual-root=/ - -After these rules, you can now access cgit via http://<vhostname>/ to get the -listing, and http://<vhostname>/repository to go directly to repository. |