aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2018-12-01 19:47:29 +0000
committerPaul Healy <lmiphay@gmail.com>2018-12-01 19:47:29 +0000
commit94bbda23fe51f920f6def2ee91c0ad8251903857 (patch)
treee7031cea26509fd93fa9b4bd0d720a2e31820e8e
parentupdate to latest homeassistant (diff)
downloadlmiphay-94bbda23fe51f920f6def2ee91c0ad8251903857.tar.gz
lmiphay-94bbda23fe51f920f6def2ee91c0ad8251903857.tar.bz2
lmiphay-94bbda23fe51f920f6def2ee91c0ad8251903857.zip
revbump opengrok
Signed-off-by: Paul Healy <lmiphay@gmail.com>
-rw-r--r--www-apps/opengrok-bin/Manifest2
-rw-r--r--www-apps/opengrok-bin/opengrok-bin-1.1_rc76.ebuild125
2 files changed, 127 insertions, 0 deletions
diff --git a/www-apps/opengrok-bin/Manifest b/www-apps/opengrok-bin/Manifest
index cbc302c..bc6665a 100644
--- a/www-apps/opengrok-bin/Manifest
+++ b/www-apps/opengrok-bin/Manifest
@@ -4,8 +4,10 @@ DIST opengrok-1.1-rc33.tar.gz 34954873 BLAKE2B 1aa5ad77940ea66ec1b301989a71320c1
DIST opengrok-1.1-rc73.tar.gz 45671626 BLAKE2B 72397984b4259aeb1add2de81b543f864e87e58b40e7e15c563c65220eb04af31b4e874399c1ca5f5e3578c012ef4182aaf88bf0a7ff6654a6abdd48d1048d09 SHA512 d5cdb4d3eb6d6e98d300cf2798657d90f663a2c36e516e42847021fad46bb15bfc7c17992c70ba9a89cf80ee5e01cb18056b42026167c6f84b768bed74db92dc
DIST opengrok-1.1-rc74.tar.gz 45681497 BLAKE2B 7ec75c1d0677d4c9c90bf1b64940348dfdae8693a12f8dda06601e410e4cb7b17f9facc0349068357c64f00f721b42084498f9305f400aff9aa370a5aa21061f SHA512 ac645b90b3e6281bd8dcbf1cd72a18192f50e4554eeee414639fe89c25da542f89571bb8090e4a0c5ab5cee1d18736299fbdb865ea87b498babc387abb3c300b
DIST opengrok-1.1-rc75.tar.gz 45676887 BLAKE2B 8b6123b4f22ca96b66e56a8e796f19ad7fb65f4c079a27db5b0ea526e770d0ba4e605166a7f22d35272f1d49ab3d3f094dc6700b88689a750f114c1270ba22c9 SHA512 117ce1adcea288b739e7f9d2e164568bf259a6326d7096e7db10e59cd351a887c3f6b45aca661cb7db6e5d3d4b4cdfdecd31182a9d50caaf0008a00939e2eb3a
+DIST opengrok-1.1-rc76.tar.gz 45755543 BLAKE2B 49abd214429e070d2082ca664aee26cd7edef874acff0ed1f7f1b2cd9218bbfd27b8089c2e0602def21c136ab32b8dfb3fef1d83086d1825da28561b53630532 SHA512 df0e65e3a9aecfc42b240737caa4363a2b52548c4ee134a3954769eb1a02aeeb0b53b10e54a5429aae20a50e112f9b17826b0a24b07a267307a06eb90e5bfa0f
EBUILD opengrok-bin-1.0.ebuild 2523 BLAKE2B 10f5173a296b55a7f04af4c8b26c4a4df812e1013c29485e8e5cd8517c447a36bfda7b97765877ecbac61a5e97b2a23b635775e6f02b88b2fc59c3a9340d5730 SHA512 b1e00b57ac203214e8aa9bf9664421d30902008251ee95acdad6d0a2047dbb8fcde04f3592ae8ea698a667cfe1248e867cb51f88abdbd58cb9c7f70aad36a7a6
EBUILD opengrok-bin-1.1_rc33.ebuild 2999 BLAKE2B 4a7f7c98e4d40cd54a3d9b0b6b24f47e6069d368a71cc5c4d1da1a7c33d9bd91387744e4dff39ac6f4f0073e029c54eb3dc7f32337f98f1f4653f58c12694845 SHA512 7c1d4150a1f9f0ba8fb0b0f647c13ade2fbb8a42f3aa0949dbd4b64dbcdbc682ff966fd9da9c1e6f4169627379dc2909b06b054133a644bc326a688dbece9f0a
EBUILD opengrok-bin-1.1_rc73.ebuild 3618 BLAKE2B b44945b83fce7f2865197d0861597e1a5c2a0a5b9c08887d8344403aa712881a30e84ea5878f47d68f33f0dc31bab45735f40bd3198177b461e5baebb3386d5f SHA512 a4d7898f504053783a498c11fbb40b0441cf1794ce90095e2da6160d092e1964f7c95919a72d397f253128126a6adf7f26410c4ce03bc19b766bd598e6ba468e
EBUILD opengrok-bin-1.1_rc74.ebuild 3710 BLAKE2B cc8dc96f5e913d2e6f8c76ced0cb5a418cb203e6f3a71f94296cb4f13794a96634a8381c9c4700b0b890f4da12f8e512b5e158e32106a9655aa7a615cd58dab3 SHA512 0b0ede6570e03f9925945e7fcf2472915e709f28b33d335f84a9d654dfa1931ed2f55137c4d63d01a880c0ed389d6e2e12ac0a818fb3a112f9e0af4eeff7f4ca
EBUILD opengrok-bin-1.1_rc75.ebuild 3710 BLAKE2B cc8dc96f5e913d2e6f8c76ced0cb5a418cb203e6f3a71f94296cb4f13794a96634a8381c9c4700b0b890f4da12f8e512b5e158e32106a9655aa7a615cd58dab3 SHA512 0b0ede6570e03f9925945e7fcf2472915e709f28b33d335f84a9d654dfa1931ed2f55137c4d63d01a880c0ed389d6e2e12ac0a818fb3a112f9e0af4eeff7f4ca
+EBUILD opengrok-bin-1.1_rc76.ebuild 3710 BLAKE2B cc8dc96f5e913d2e6f8c76ced0cb5a418cb203e6f3a71f94296cb4f13794a96634a8381c9c4700b0b890f4da12f8e512b5e158e32106a9655aa7a615cd58dab3 SHA512 0b0ede6570e03f9925945e7fcf2472915e709f28b33d335f84a9d654dfa1931ed2f55137c4d63d01a880c0ed389d6e2e12ac0a818fb3a112f9e0af4eeff7f4ca
diff --git a/www-apps/opengrok-bin/opengrok-bin-1.1_rc76.ebuild b/www-apps/opengrok-bin/opengrok-bin-1.1_rc76.ebuild
new file mode 100644
index 0000000..c031bc8
--- /dev/null
+++ b/www-apps/opengrok-bin/opengrok-bin-1.1_rc76.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2018 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=$(ver_rs 2 '-')
+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"
+}