aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2019-08-17 10:35:03 +0100
committerPaul Healy <lmiphay@gmail.com>2019-08-17 10:35:03 +0100
commit3c49d21f03afb7e2a7efb9db0e54a7faecd52419 (patch)
treecf2011cf3c67ea6352c947c28968b19e4002c03c /www-apps
parentremove old ebuilds (diff)
downloadlmiphay-3c49d21f03afb7e2a7efb9db0e54a7faecd52419.tar.gz
lmiphay-3c49d21f03afb7e2a7efb9db0e54a7faecd52419.tar.bz2
lmiphay-3c49d21f03afb7e2a7efb9db0e54a7faecd52419.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.3.1.ebuild125
2 files changed, 127 insertions, 0 deletions
diff --git a/www-apps/opengrok-bin/Manifest b/www-apps/opengrok-bin/Manifest
index 66f099c..ee0fc61 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.24.tar.gz 45840066 BLAKE2B b6c6062ebf166005e69e02f8ae418d713a24ccac969e8c49722e03d4217d3276c32a430302a51707acb223cb99213125bdc1acf43c6c9fee98087c8c283b391b SHA512 ff2672de854ecc8dd0b67b3fb20f3400faf23c3fdae7228a0cd1840c7cdf36c8629dca9e35d0dba4d23d00cbd1e644cdc98ea493cde3163db8169af2dc342605
DIST opengrok-1.2.25.tar.gz 45840133 BLAKE2B dee6a4732f0a7a29cef4d11cdf80c1cc1ff82fcb799b1980fac7d404f39d58142027992eb6d00fdbb2ff7975bdd7285b211fb2f22e368155e1f67ed87551a7c0 SHA512 2ebd1de5bc2a2f3d4706af32bf73874b3b916d96bc6abd0442afdfe01639d507492453202af5da88bdb085d0453d7af42885ba1689cfafd272be8289fed8155a
DIST opengrok-1.3.0.tar.gz 46285386 BLAKE2B cb7e3ee477bd666447b374e4e30acba3a6aa7f609fcbd46b48b81d8ed9eae87f9ab7e7411851a0294009fa6327765b3f9dc67b75f38acbfea7906edf2fcc5dd2 SHA512 cbf6ba642c2f8e169192113df6c73274d9d2ce69e6b2ecc1e28428abbd8e0434cf8bbc424ac1cdd78b40589a91b042ee8665044e2f64c223fd5c64be0ec55c06
+DIST opengrok-1.3.1.tar.gz 48057315 BLAKE2B 2121bdc196749e1a2303daded1ef29d77a1f2c29d046824d433060cc0342c9cbf031b38ed6d155397ce527ad9f0b719c7a882906c8228cdb45a6cd87614464b8 SHA512 79107942e32b7c5d6132e57b29d40e9da86a73315c9cd3b2dec4337f4cc0d82687876745796606b7cda333e42966a57b4408dd8f63397fc80bbf98b51d47db6a
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.24.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
EBUILD opengrok-bin-1.2.25.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
EBUILD opengrok-bin-1.3.0.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
+EBUILD opengrok-bin-1.3.1.ebuild 3702 BLAKE2B 11754446f67b2d4264592345819c471b949eae41930adcd3b66a900f607b272c26a7a1025899346dec92e4559cefc1abd665edeacb24f1116dc5886b4c283c45 SHA512 eeec117ff1c8bc94fc8dfdee99552ac28b82c3af427ddb5c410b4ed436bac4063d14bb716bcabdc3164d5e92372f02d7fb0b04810bf389574bf2f97a78503378
diff --git a/www-apps/opengrok-bin/opengrok-bin-1.3.1.ebuild b/www-apps/opengrok-bin/opengrok-bin-1.3.1.ebuild
new file mode 100644
index 0000000..4e57fa7
--- /dev/null
+++ b/www-apps/opengrok-bin/opengrok-bin-1.3.1.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"
+}