summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2015-12-10 21:14:34 +0100
committerMike Gilbert <floppym@gentoo.org>2015-12-10 15:45:16 -0500
commitc9e81c80c359ef78badf23197fa9525755dd416d (patch)
tree8a284a11cdd3579686ccac1adcbe7f0115eedc98 /net-irc/kvirc
parentdev-lang/python: Add compat symlink for pythonX.Y-config (diff)
downloadgentoo-c9e81c80c359ef78badf23197fa9525755dd416d.tar.gz
gentoo-c9e81c80c359ef78badf23197fa9525755dd416d.tar.bz2
gentoo-c9e81c80c359ef78badf23197fa9525755dd416d.zip
net-irc/kvirc: Switch to git.
Diffstat (limited to 'net-irc/kvirc')
-rw-r--r--net-irc/kvirc/kvirc-9999.ebuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/net-irc/kvirc/kvirc-9999.ebuild b/net-irc/kvirc/kvirc-9999.ebuild
index 16b73047f906..6dfdba4edd65 100644
--- a/net-irc/kvirc/kvirc-9999.ebuild
+++ b/net-irc/kvirc/kvirc-9999.ebuild
@@ -1,17 +1,16 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_DEPEND="python? 2"
-inherit cmake-utils flag-o-matic multilib python subversion
+inherit cmake-utils flag-o-matic git-r3 multilib python
DESCRIPTION="Advanced IRC Client"
HOMEPAGE="http://www.kvirc.net/"
SRC_URI=""
-ESVN_REPO_URI="https://svn.kvirc.de/svn/trunk/kvirc"
-ESVN_PROJECT="kvirc"
+EGIT_REPO_URI="https://github.com/kvirc/KVIrc"
LICENSE="kvirc"
SLOT="4"
@@ -53,10 +52,10 @@ pkg_setup() {
}
src_prepare() {
- subversion_wc_info
- VERSIO_PRAESENS="${ESVN_WC_REVISION}"
- einfo "Setting of revision number to ${VERSIO_PRAESENS}"
- sed -e "/#define KVI_DEFAULT_FRAME_CAPTION/s/KVI_VERSION/& \" r${VERSIO_PRAESENS}\"/" -i src/kvirc/ui/KviMainWindow.cpp || die "Setting of revision number failed"
+ KVIRC_GIT_REVISION="$(git show -s --format=%H)"
+ KVIRC_GIT_SOURCES_DATE="$(git show -s --format=%cd --date=short)"
+ einfo "Setting of revision number to ${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE}"
+ sed -e "/#define KVI_DEFAULT_FRAME_CAPTION/s/KVI_VERSION/& \" (${KVIRC_GIT_REVISION} ${KVIRC_GIT_SOURCES_DATE})\"/" -i src/kvirc/ui/KviMainWindow.cpp || die "Setting of revision number failed"
}
src_configure() {
@@ -65,7 +64,8 @@ src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
-DLIB_SUFFIX=${libdir#lib}
- -DMANUAL_REVISION=${VERSIO_PRAESENS}
+ -DMANUAL_REVISION=${KVIRC_GIT_REVISION}
+ -DMANUAL_SOURCES_DATE=${KVIRC_GIT_SOURCES_DATE//-/}
-DWANT_COEXISTENCE=1
-DWANT_CRYPT=1
-DWANT_ENV_FLAGS=1