summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/smile
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/smile')
-rw-r--r--media-gfx/smile/Manifest1
-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.xml7
-rw-r--r--media-gfx/smile/smile-1.0.ebuild61
5 files changed, 209 insertions, 0 deletions
diff --git a/media-gfx/smile/Manifest b/media-gfx/smile/Manifest
new file mode 100644
index 000000000000..fa3c295c288f
--- /dev/null
+++ b/media-gfx/smile/Manifest
@@ -0,0 +1 @@
+DIST smile-1.0.tar.gz 15103785 SHA256 d6a6f5a2c7bce2dff174c4cb7f09a6326a926416c1ea47c6bdfc592b9cece9bf
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..a40624fba8f0
--- /dev/null
+++ b/media-gfx/smile/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/smile/smile-1.0.ebuild b/media-gfx/smile/smile-1.0.ebuild
new file mode 100644
index 000000000000..0fdac7c28147
--- /dev/null
+++ b/media-gfx/smile/smile-1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+LANGS="de en it pl pt ru"
+
+inherit eutils qt4-r2
+
+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
+ dev-qt/qtgui:4[debug?]
+ dev-qt/qtopengl:4[debug?]
+ dev-qt/qtwebkit:4[debug?]
+ || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/fix_installation.patch"
+ "${FILESDIR}/fix_docs-0.9.10.patch"
+)
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ qt4-r2_src_prepare
+ # fix version string on applied patch
+ sed -i "s/${PN}-0.9.10/${P}/" "${S}"/helpfrm.cpp \
+ || die "failed to fix docs path"
+}
+
+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
+}