aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2019-05-18 11:53:41 +0100
committerPaul Healy <lmiphay@gmail.com>2019-05-18 11:53:41 +0100
commit8333274987a57547387344e59add3aa08b8520dc (patch)
tree4da30315d3a4f0a3709a8a47f0a64c34314065be /www-apps
parentrevbump kokua (diff)
downloadlmiphay-8333274987a57547387344e59add3aa08b8520dc.tar.gz
lmiphay-8333274987a57547387344e59add3aa08b8520dc.tar.bz2
lmiphay-8333274987a57547387344e59add3aa08b8520dc.zip
revbump opengrok
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/opengrok-bin/Manifest2
-rw-r--r--www-apps/opengrok-bin/opengrok-bin-1.2.8.ebuild125
2 files changed, 127 insertions, 0 deletions
diff --git a/www-apps/opengrok-bin/Manifest b/www-apps/opengrok-bin/Manifest
index aabd861..bb39c76 100644
--- a/www-apps/opengrok-bin/Manifest
+++ b/www-apps/opengrok-bin/Manifest
@@ -4,8 +4,10 @@ DIST opengrok-1.1.2.tar.gz 45767793 BLAKE2B 614a6d07e291d00d3b73e361610b0d39634c
DIST opengrok-1.2.5.tar.gz 45301295 BLAKE2B 65757554afadb7a2a822d6fd9b8e596e9d02078f80e2865343876b20c46a3016d91f5db84a852e45ae0f85569a6165f4468b60b97ff1124320d5c0543ea99f8b SHA512 e4adaa48de26a9b7f3425bc6a4bf78156d7a1303252f9142a5a7ae5538ee14239c966184e2c9c2336778a64fd4de74b4002d096086dbc2ce2d44d20c36fe97b9
DIST opengrok-1.2.6.tar.gz 45302070 BLAKE2B 21d450448639cdac6fa44d6f85da736c7707f530cd03d9c26def67a918cf8f0641296d8cd222d83c99ad2f64daca739652517f3428b8b0ceb6d0612bf8dc4818 SHA512 244e5838ece8d61af42918c35549527cd1934d0aee33f50185215a6b904c7cdae6ec9cbbf7a5db442c903f86e2ca1bdf66bd10b991c641ffea739a88143640a6
DIST opengrok-1.2.7.tar.gz 45302444 BLAKE2B 54a31a9aabb4b74ab5cb118b8d8e01887b22a292dbd01a37f7c0add298376a7842a5c89dfc92df5d0e94e3b1a8dea5078ccdb7f72c7de4ff19936a1b0f98ac0c SHA512 fa337c28fa3795711b05e00cd06a8f764247ca659e50032a6f0349c9765dd99ffb0f6213e05b53a598dbf7aa965dbdceae3a05335f7644fe9b5148f2a4b7da33
+DIST opengrok-1.2.8.tar.gz 45315164 BLAKE2B b533d10b4193b0ed8af1b6bc4c410b517988930ff44e0811cef479f7e6bd563364e65650427e8ce1f2d0ffabc9a28235cf6a24ec7b0cc9a1602a3ae453417650 SHA512 69ac49c4f76c3f92ff4b21995775cf151acaf12d36ebb3a757bf5d5d29944460bffa609a3b0caeb6ab751aa0cb78ec5772c153589f34f48c798d8c2cf678ec58
EBUILD opengrok-bin-1.0.ebuild 2523 BLAKE2B 10f5173a296b55a7f04af4c8b26c4a4df812e1013c29485e8e5cd8517c447a36bfda7b97765877ecbac61a5e97b2a23b635775e6f02b88b2fc59c3a9340d5730 SHA512 b1e00b57ac203214e8aa9bf9664421d30902008251ee95acdad6d0a2047dbb8fcde04f3592ae8ea698a667cfe1248e867cb51f88abdbd58cb9c7f70aad36a7a6
EBUILD opengrok-bin-1.1.2.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
EBUILD opengrok-bin-1.2.5.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
EBUILD opengrok-bin-1.2.6.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
EBUILD opengrok-bin-1.2.7.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
+EBUILD opengrok-bin-1.2.8.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
diff --git a/www-apps/opengrok-bin/opengrok-bin-1.2.8.ebuild b/www-apps/opengrok-bin/opengrok-bin-1.2.8.ebuild
new file mode 100644
index 0000000..4e57fa7
--- /dev/null
+++ b/www-apps/opengrok-bin/opengrok-bin-1.2.8.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_6 )
+
+inherit eutils user distutils-r1
+
+MY_PN="${PN/-bin/}"
+# 1.1_rc2 -> 1.1-rc2
+MY_PV="${PV}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Fast source code search and cross reference engine"
+HOMEPAGE="http://opengrok.github.io/OpenGrok/"
+SRC_URI="https://github.com/OpenGrok/OpenGrok/releases/download/${MY_PV}/${MY_P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="CDDL"
+SLOT="0"
+KEYWORDS="~amd64"
+# use cssc for SCCS support
+IUSE="cssc subversion"
+
+TOMCAT=9
+
+BDEPEND="
+ dev-python/pytest-runner[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+DEPEND="
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+"
+RDEPEND="
+ ${DEPEND}
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
+ >=dev-util/ctags-5.8
+ www-servers/tomcat:${TOMCAT}
+ cssc? ( dev-vcs/cssc )
+ subversion? ( >=dev-vcs/subversion-1.9.5[java] )
+"
+
+INSTALL_DIR="/opt/${MY_PN}"
+OPENGROK_DIR="/var/${MY_PN}"
+ETC_DIR="${OPENGROK_DIR}/etc"
+SRC_DIR="${OPENGROK_DIR}/src"
+USER_ID="opengrok"
+GROUP_ID="opengrok"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( "doc/README.md" "doc/logging.properties" )
+
+pkg_setup() {
+ enewgroup "${GROUP_ID}"
+ enewuser "${USER_ID}" -1 -1 -1 "${GROUP_ID}"
+}
+
+src_unpack() {
+ default
+ cd "${S}" && tar -xf tools/opengrok-tools.tar.gz || die
+}
+
+python_prepare_all() {
+ mv opengrok-tools-*/* . || die
+
+ sed -i '/resource/d' 'opengrok_tools.egg-info/requires.txt' || die
+ sed -i "/'resource'/d" 'setup.py' || die
+ sed -i "/'pytest-runner',/d" 'setup.py' || die
+
+ # force the finding of ctags (exuberant version is installed as ctags on gentoo)
+ sed -i -e "s:'universal-ctags', ::" src/main/python/opengrok_tools/utils/indexer.py || die
+
+ sed -i -e '1,2d' man/man1/opengrok.1 || die
+ # manpage sed based on Fedora opengrok.spec by Lubomir Kundrak
+ sed 's,^<!DOCTYPE.*,<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd">,
+ s,^<?Pub Inc>,,
+ s,^<command>opengrok,<command>opengrok</command>,
+ s,^<optional><option>,<arg><option>,
+ s,</option></optional>,</option></arg>,
+ s,^</command>,,' man/man1/opengrok.1 | \
+ xsltproc /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl -
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ doman opengrok.1
+
+ dodir "${INSTALL_DIR}"
+ cp -pRP lib share "${ED}/${INSTALL_DIR}" || die
+
+ diropts -m 0775 -o ${USER_ID} -g ${GROUP_ID}
+ keepdir "${ETC_DIR}" "${SRC_DIR}"
+
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ elog "Create a tomcat instance to host opengrok, see: https://wiki.gentoo.org/wiki/Apache_Tomcat"
+ elog "e.g. /usr/share/tomcat-${TOMCAT}/gentoo/tomcat-instance-manager.bash --create"
+ elog ""
+ elog "Deploy the web app, example:"
+ elog " opengrok-deploy ${INSTALL_DIR}/lib/source.war /var/lib/tomcat-${TOMCAT}/webapps"
+ elog ""
+ elog "Index the source directory (${SRC_DIR}), example:"
+ elog " opengrok-indexer -j /usr/bin/java -a ${INSTALL_DIR}/lib/opengrok.jar -- \ "
+ elog " --source ${SRC_DIR} --dataRoot ${OPENGROK_DIR}/data \ "
+ elog " --writeConfig ${OPENGROK_DIR}/etc/configuration.xml --host http://127.0.0.1:8080"
+ elog ""
+ elog "If you need to specify JAVA_HOME: export JAVA_HOME=\$(java-config-2 --jdk-home)"
+ elog ""
+ elog "Browse to: http://YOUR_WEBAPP_SERVER:WEBAPPSRV_PORT/source"
+ elog "e.g. http://localhost:8080/source/"
+ elog ""
+ elog "Restart tomcat if you get an application not-found on first installation:"
+ elog "e.g. /etc/init.d/tomcat-${TOMCAT} restart"
+ elog ""
+ elog "Release notes at: https://github.com/OpenGrok/OpenGrok/releases"
+}