diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2014-02-05 07:14:44 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2014-02-05 07:14:44 +0000 |
commit | 4a6a287794604b740356628087ef92ef51adc9e3 (patch) | |
tree | ce43ed8bd675f215a022e61a6adf865665cfffc9 /games-puzzle | |
parent | Adopt needed diskspace (diff) | |
download | gentoo-2-4a6a287794604b740356628087ef92ef51adc9e3.tar.gz gentoo-2-4a6a287794604b740356628087ef92ef51adc9e3.tar.bz2 gentoo-2-4a6a287794604b740356628087ef92ef51adc9e3.zip |
version bump (bug #500200)
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/connectagram/ChangeLog | 11 | ||||
-rw-r--r-- | games-puzzle/connectagram/connectagram-1.1.1.ebuild | 52 | ||||
-rw-r--r-- | games-puzzle/connectagram/files/connectagram-1.1.1-gentoo.patch | 76 |
3 files changed, 137 insertions, 2 deletions
diff --git a/games-puzzle/connectagram/ChangeLog b/games-puzzle/connectagram/ChangeLog index 8a5e53e27c84..dbf02f3ce813 100644 --- a/games-puzzle/connectagram/ChangeLog +++ b/games-puzzle/connectagram/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-puzzle/connectagram -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/connectagram/ChangeLog,v 1.6 2013/03/11 18:57:18 hasufell Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/connectagram/ChangeLog,v 1.7 2014/02/05 07:14:44 mr_bones_ Exp $ + +*connectagram-1.1.1 (05 Feb 2014) + + 05 Feb 2014; Michael Sterrett <mr_bones_@gentoo.org> + +connectagram-1.1.1.ebuild, +files/connectagram-1.1.1-gentoo.patch, + files/connectagram-1.1.0-gentoo.patch: + version bump (bug #500200) *connectagram-1.1.0 (11 Mar 2013) diff --git a/games-puzzle/connectagram/connectagram-1.1.1.ebuild b/games-puzzle/connectagram/connectagram-1.1.1.ebuild new file mode 100644 index 000000000000..4977c20b90cf --- /dev/null +++ b/games-puzzle/connectagram/connectagram-1.1.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/connectagram/connectagram-1.1.1.ebuild,v 1.1 2014/02/05 07:14:44 mr_bones_ Exp $ + +EAPI=5 +inherit eutils gnome2-utils qt4-r2 games + +DESCRIPTION="A word unscrambling game" +HOMEPAGE="http://gottcode.org/connectagram/" +SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-qt/qtcore-4.6:4 + >=dev-qt/qtgui-4.6:4" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + + sed -i \ + -e "s#@GAMES_BINDIR@#${GAMES_BINDIR}#" \ + -e "s#@GAMES_DATADIR@#${GAMES_DATADIR}#" \ + ${PN}.pro src/{locale_dialog,new_game_dialog,wordlist}.cpp || die +} + +src_configure() { + qt4-r2_src_configure +} + +src_install() { + emake INSTALL_ROOT="${D}" install + dodoc ChangeLog + prepgamesdirs +} + +pkg_preinst() { + gnome2_icon_savelist + games_pkg_preinst +} + +pkg_postinst() { + gnome2_icon_cache_update + games_pkg_postinst +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-puzzle/connectagram/files/connectagram-1.1.1-gentoo.patch b/games-puzzle/connectagram/files/connectagram-1.1.1-gentoo.patch new file mode 100644 index 000000000000..8aae286bd427 --- /dev/null +++ b/games-puzzle/connectagram/files/connectagram-1.1.1-gentoo.patch @@ -0,0 +1,76 @@ +--- connectagram-1.1.1.orig/connectagram.pro ++++ connectagram-1.1.1/connectagram.pro +@@ -70,16 +70,16 @@ + + unix: !macx { + isEmpty(PREFIX) { +- PREFIX = /usr/local ++ PREFIX = /usr + } + isEmpty(BINDIR) { +- BINDIR = bin ++ BINDIR = @GAMES_BINDIR@ + } + +- target.path = $$PREFIX/$$BINDIR/ ++ target.path = @GAMES_BINDIR@/ + + data.files = data +- data.path = $$PREFIX/share/connectagram/ ++ data.path = @GAMES_DATADIR@/connectagram/ + + pixmap.files = icons/connectagram.xpm + pixmap.path = $$PREFIX/share/pixmaps/ +@@ -91,7 +91,7 @@ + desktop.path = $$PREFIX/share/applications/ + + qm.files = translations/*.qm +- qm.path = $$PREFIX/share/connectagram/translations ++ qm.path = @GAMES_DATADIR@/connectagram/translations/ + + INSTALLS += target pixmap icon desktop data qm + } +--- connectagram-1.1.1.orig/src/locale_dialog.cpp ++++ connectagram-1.1.1/src/locale_dialog.cpp +@@ -87,6 +87,7 @@ + paths.append(appdir); + paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower()); + paths.append(appdir + "/../Resources"); ++ paths.append("@GAMES_DATADIR@/connectagram"); + } + foreach (const QString& path, paths) { + if (QFile::exists(path + "/translations/")) { +--- connectagram-1.1.1.orig/src/new_game_dialog.cpp ++++ connectagram-1.1.1/src/new_game_dialog.cpp +@@ -48,7 +48,7 @@ + m_wordlist = new WordList(this); + m_wordlist->setLanguage(WordList::defaultLanguage()); + m_languages_box = new QComboBox(this); +- QStringList languages = QDir("connectagram:").entryList(QDir::Dirs | QDir::NoDotAndDotDot); ++ QStringList languages = QDir("@GAMES_DATADIR@/connectagram/data").entryList(QDir::Dirs | QDir::NoDotAndDotDot); + foreach (const QString& language, languages) { + m_languages_box->addItem(LocaleDialog::languageName(language), language); + } +--- connectagram-1.1.1.orig/src/wordlist.cpp ++++ connectagram-1.1.1/src/wordlist.cpp +@@ -91,9 +91,9 @@ + + QString WordList::defaultLanguage() { + QString language = QLocale().name(); +- if (!QFile::exists("connectagram:" + language)) { ++ if (!QFile::exists("@GAMES_DATADIR@/connectagram/data/" + language)) { + language = language.left(2); +- if (!QFile::exists("connectagram:" + language)) { ++ if (!QFile::exists("@GAMES_DATADIR@/connectagram/data/" + language)) { + language = "en"; + } + } +@@ -112,7 +112,7 @@ + m_maximum_length(0) + { + // Read words from disk +- QFile file("connectagram:" + language + "/words"); ++ QFile file("@GAMES_DATADIR@/connectagram/data/" + language + "/words"); + if (!file.open(QFile::ReadOnly | QIODevice::Text)) { + return; + } |