summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-07-07 23:05:21 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-07-07 23:05:21 +0000
commit056a5f521e7a665bc4d3bd411f732162665231fc (patch)
tree52d705572972a94df1380386a0f11d465b3d28da /media-gfx/smile
parentUse elog for fetch error. (diff)
downloadgentoo-2-056a5f521e7a665bc4d3bd411f732162665231fc.tar.gz
gentoo-2-056a5f521e7a665bc4d3bd411f732162665231fc.tar.bz2
gentoo-2-056a5f521e7a665bc4d3bd411f732162665231fc.zip
Initial commit of smile application. Fixes bug 267055
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/smile')
-rw-r--r--media-gfx/smile/ChangeLog12
-rw-r--r--media-gfx/smile/files/fix_docs-0.9.10.patch18
-rw-r--r--media-gfx/smile/files/fix_installation.patch122
-rw-r--r--media-gfx/smile/metadata.xml12
-rw-r--r--media-gfx/smile/smile-0.9.10.ebuild62
5 files changed, 226 insertions, 0 deletions
diff --git a/media-gfx/smile/ChangeLog b/media-gfx/smile/ChangeLog
new file mode 100644
index 000000000000..0d2a4ece2db0
--- /dev/null
+++ b/media-gfx/smile/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-gfx/smile
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/smile/ChangeLog,v 1.1 2009/07/07 23:05:21 hwoarang Exp $
+
+*smile-0.9.10 (07 Jul 2009)
+
+ 07 Jul 2009; Markos Chandras <hwoarang@gentoo.org> +smile-0.9.10.ebuild,
+ +files/fix_docs-0.9.10.patch, +files/fix_installation.patch,
+ +metadata.xml:
+ Initial commit of smile application. Fixes bug 267055. Thanks to Andreas
+ Mielke and Markus Rathgeb for the ebuilds
+
diff --git a/media-gfx/smile/files/fix_docs-0.9.10.patch b/media-gfx/smile/files/fix_docs-0.9.10.patch
new file mode 100644
index 000000000000..92eed5150557
--- /dev/null
+++ b/media-gfx/smile/files/fix_docs-0.9.10.patch
@@ -0,0 +1,18 @@
+Index: smile/helpfrm.cpp
+===================================================================
+--- smile.orig/helpfrm.cpp
++++ smile/helpfrm.cpp
+@@ -26,11 +26,11 @@ helpfrm::helpfrm(QWidget *parent) : QDia
+ qDebug() << "LOADING HELP LANGUAGE ... " + wlpack.left(2);
+ if ( wlpack.left(2) == "fr" )
+ {
+- webhelp->load(QUrl(wg_tmp_002 + "/BIB_ManSlide/Help/doc_fr.html"));
++ webhelp->load(QUrl("/usr/share/doc/smile-0.9.10/doc_fr.html"));
+ }
+ else
+ {
+- webhelp->load(QUrl(wg_tmp_002 + "/BIB_ManSlide/Help/doc_en.html"));
++ webhelp->load(QUrl("/usr/share/doc/smile-0.9.10/doc_en.html"));
+ }
+ }
+ configfile.close();
diff --git a/media-gfx/smile/files/fix_installation.patch b/media-gfx/smile/files/fix_installation.patch
new file mode 100644
index 000000000000..54311c92eb29
--- /dev/null
+++ b/media-gfx/smile/files/fix_installation.patch
@@ -0,0 +1,122 @@
+diff -ru smile.ori/mainfrm.cpp smilei/mainfrm.cpp
+--- smile.orig/mainfrm.cpp
++++ smile/mainfrm.cpp
+@@ -187,14 +187,15 @@
+ QString wlpack = QLocale::system().name();
+ qDebug() << "LOADING LANGUAGE ... smile_" + wlpack.left(2);
+ QTranslator *qtTranslator = new QTranslator(this);
+- if (qtTranslator->load("smile_" + wlpack.left(2), qApp->applicationDirPath()) == true )
++ if (qtTranslator->load("/usr/share/smile/translations/smile_" + wlpack.left(2), qApp->applicationDirPath()) == true )
+ {
+ qApp->installTranslator(qtTranslator);
+ }
+ else
+ {
+- if (qtTranslator->load("smile_en", qApp->applicationDirPath()) == true )
++ if (qtTranslator->load("/usr/share/smile/translations/smile_en", qApp->applicationDirPath()) == true )
+ {
++ qDebug() << "LOADING FALLBACK (EN) LANGUAGE...";
+ qApp->installTranslator(qtTranslator);
+ }
+ }
+@@ -1639,7 +1640,7 @@
+ void mainfrm::f_splash_load()
+ {
+ QDir tmpdir;
+- tmpdir.setPath(wg_library + "/BIB_ManSlide/Eff_sup/");
++ tmpdir.setPath("/usr/share/smile/BIB_ManSlide/Eff_sup/");
+ QStringList filters;
+ filters << "*.mng" << "*.MNG" << "*.gif" << "*.GIF" << "*.png" << "*.PNG";
+ tmpdir.setNameFilters(filters);
+@@ -1649,11 +1650,11 @@
+ foreach (wlfile, tmpdir.entryList(QDir::Files))
+ {
+ comboeffets->insertItem(positem, wlfile);
+- comboeffets->setItemIcon(positem, QIcon(wg_library + "/BIB_ManSlide/Eff_sup/" + wlfile));
++ comboeffets->setItemIcon(positem, QIcon("/usr/share/smile/BIB_ManSlide/Eff_sup/" + wlfile));
+ positem++;
+ }
+ //
+- tmpdir.setPath(wg_library + "/BIB_ManSlide/Luma/");
++ tmpdir.setPath("/usr/share/smile/BIB_ManSlide/Luma/");
+ //filters << "MINI*.png";
+ //tmpdir.setNameFilters(filters);
+ positem = 2;
+@@ -1672,14 +1673,14 @@
+ if ( wlfile != "crossfade.png" )
+ {
+ nametra = wlfile.mid(0,wlfile.length() - 4);
+- transpix.load(wg_library + "/BIB_ManSlide/Luma/" + wlfile);
++ transpix.load("/usr/share/smile/BIB_ManSlide/Luma/" + wlfile);
+ transpix = transpix.scaledToWidth( 128, Qt::FastTransformation );
+ lst_transitions->insertItem(positem,nametra);
+ lst_transitions->setItemIcon(positem, QIcon(transpix));
+ lst_transitions_2->insertItem(positem+1,nametra);
+ lst_transitions_2->setItemIcon(positem+1, QIcon(transpix));
+- table_transitions[positem] = wg_library + "/BIB_ManSlide/Luma/" + nametra + ".png";
+- loadtra.load(wg_library + "/BIB_ManSlide/Luma/" + nametra + ".png");
++ table_transitions[positem] = "/usr/share/smile/BIB_ManSlide/Luma/" + nametra + ".png";
++ loadtra.load("/usr/share/smile/BIB_ManSlide/Luma/" + nametra + ".png");
+ table_image_transition[positem-2] = loadtra;
+ ++positem;
+ }
+@@ -1895,9 +1896,9 @@
+ int result = QMessageBox::information(this, "SMILE", tr("Voulez vous vraiment supprimer cet effet : ") + comboeffets->currentText() , tr("Oui"), tr("Non"), 0, 1 );
+ if (result == 0)
+ {
+- if ( QFile::remove(wg_library + "BIB_ManSlide/Eff_sup/" + comboeffets->currentText()) == false )
++ if ( QFile::remove("/usr/share/smile/BIB_ManSlide/Eff_sup/" + comboeffets->currentText()) == false )
+ {
+- qDebug() << "ERROR REMOVING EFFECT FILE : " << wg_library + "BIB_ManSlide/Eff_sup/" + comboeffets->currentText();
++ qDebug() << "ERROR REMOVING EFFECT FILE : " << "/usr/share/smile/BIB_ManSlide/Eff_sup/" + comboeffets->currentText();
+ }
+ f_reload();
+ comboeffets->setCurrentIndex(0);
+@@ -1961,7 +1962,7 @@
+ {
+ int i = wmyfic.lastIndexOf( '/' );
+ outfilename = wmyfic.mid(i + 1, wmyfic.length() - (i + 1));
+- QFile::copy ( wmyfic, wg_library + "BIB_ManSlide/Eff_sup/" + outfilename );
++ QFile::copy ( wmyfic, "/usr/share/smile/BIB_ManSlide/Eff_sup/" + outfilename );
+ f_reload();
+ }
+ }
+@@ -1969,7 +1970,7 @@
+ void mainfrm::f_reload()
+ {
+ QDir tmpdir;
+- tmpdir.setPath(wg_library + "BIB_ManSlide/Eff_sup/");
++ tmpdir.setPath("/usr/share/smile/BIB_ManSlide/Eff_sup/");
+ QStringList filters;
+ filters << "*.mng" << "*.MNG" << "*.gif" << "*.GIF" << "*.png" << "*.PNG";
+ tmpdir.setNameFilters(filters);
+@@ -1980,7 +1981,7 @@
+ foreach (wlfile, tmpdir.entryList(QDir::Files))
+ {
+ comboeffets->insertItem(positem, wlfile);
+- comboeffets->setItemIcon(positem, QIcon(wg_library + "/BIB_ManSlide/Eff_sup/" + wlfile));
++ comboeffets->setItemIcon(positem, QIcon("/usr/share/smile/BIB_ManSlide/Eff_sup/" + wlfile));
+ positem++;
+ }
+ }
+diff -ru smile.ori/tetrahedron.cpp smile/tetrahedron.cpp
+--- smile.orig/tetrahedron.cpp
++++ smile/tetrahedron.cpp
+@@ -344,7 +344,7 @@
+ {
+ iseffect = 1;
+ delete movie;
+- movie = new QMovie(wg_tet_library + "/BIB_ManSlide/Eff_sup/" + nomeffet);
++ movie = new QMovie("/usr/share/smile/BIB_ManSlide/Eff_sup/" + nomeffet);
+ if ( movie->isValid() == true )
+ {
+ movie->setCacheMode( QMovie::CacheAll );
+@@ -382,7 +382,7 @@
+ }
+ else
+ {
+- qDebug() << "ERROR LOADING EFFECT TEXTURE - INIT POSITION - " << wg_tet_library + "/BIB_ManSlide/Eff_sup/" + nomeffet;
++ qDebug() << "ERROR LOADING EFFECT TEXTURE - INIT POSITION - " << "/usr/share/smile/BIB_ManSlide/Eff_sup/" + nomeffet;
+ }
+ }
+ }
diff --git a/media-gfx/smile/metadata.xml b/media-gfx/smile/metadata.xml
new file mode 100644
index 000000000000..d5f9562e2df2
--- /dev/null
+++ b/media-gfx/smile/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd>
+<maintainer>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-gfx/smile/smile-0.9.10.ebuild b/media-gfx/smile/smile-0.9.10.ebuild
new file mode 100644
index 000000000000..f4feb93b6ec5
--- /dev/null
+++ b/media-gfx/smile/smile-0.9.10.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/smile/smile-0.9.10.ebuild,v 1.1 2009/07/07 23:05:21 hwoarang Exp $
+
+EAPI="2"
+
+inherit qt4
+
+DESCRIPTION="Slideshow Maker In Linux Environement"
+HOMEPAGE="http://smile.tuxfamily.org/"
+SRC_URI="http://download.tuxfamily.org/smiletool/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="media-sound/sox
+ media-video/mplayer
+ x11-libs/qt-gui:4[debug?]
+ x11-libs/qt-opengl:4[debug?]
+ x11-libs/qt-webkit:4[debug?]
+ media-gfx/imagemagick"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/fix_installation.patch"
+ "${FILESDIR}/fix_docs-${PV}.patch"
+)
+LANGS="de en it pl pt ru"
+
+for x in ${LANGS};do
+ IUSE="${IUSE} linguas_${x}"
+done
+
+S="${WORKDIR}/${PN}"
+
+src_configure() {
+ eqmake4 ${PN}.pro
+}
+
+src_install() {
+ dobin smile || die "dobin failed"
+ doicon Interface/Theme/${PN}.png || die "doicon failed"
+ make_desktop_entry smile Smile smile "Qt;AudioVideo;Video"
+
+ dodoc BIB_ManSlide/Help/doc_en.html
+ dodoc BIB_ManSlide/Help/doc_fr.html
+ insinto /usr/share/doc/${PF}/
+ doins -r BIB_ManSlide/Help/images
+ doins -r BIB_ManSlide/Help/images_en
+ doins -r BIB_ManSlide/Help/images_fr
+ #translations
+ insinto /usr/share/${PN}/translations/
+ for lang in ${LINGUAS};do
+ for x in ${LANGS};do
+ if [[ ${lang} == ${x} ]];then
+ doins ${PN}_${x}.qm || die "failed to install ${x} translation"
+ fi
+ done
+ done
+}