diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-07-07 23:05:21 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-07-07 23:05:21 +0000 |
commit | 2fcf9cf0219a0e07d4f1451231ad56973bec3f6b (patch) | |
tree | 56f98c614dc5a7ffc2c72e0694332a88bc0cddd7 /media-gfx/smile | |
parent | Use elog for fetch error. (diff) | |
download | historical-2fcf9cf0219a0e07d4f1451231ad56973bec3f6b.tar.gz historical-2fcf9cf0219a0e07d4f1451231ad56973bec3f6b.tar.bz2 historical-2fcf9cf0219a0e07d4f1451231ad56973bec3f6b.zip |
Initial commit of smile application. Fixes bug 267055
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/smile')
-rw-r--r-- | media-gfx/smile/ChangeLog | 12 | ||||
-rw-r--r-- | media-gfx/smile/Manifest | 6 | ||||
-rw-r--r-- | media-gfx/smile/files/fix_docs-0.9.10.patch | 18 | ||||
-rw-r--r-- | media-gfx/smile/files/fix_installation.patch | 122 | ||||
-rw-r--r-- | media-gfx/smile/metadata.xml | 12 | ||||
-rw-r--r-- | media-gfx/smile/smile-0.9.10.ebuild | 62 |
6 files changed, 232 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/Manifest b/media-gfx/smile/Manifest new file mode 100644 index 000000000000..a57cef3082d1 --- /dev/null +++ b/media-gfx/smile/Manifest @@ -0,0 +1,6 @@ +AUX fix_docs-0.9.10.patch 645 RMD160 69dd4e43098f6a4c67b066a9b8efc04058baff02 SHA1 ddb18b23d5c8d84046a025358ab67f90d70c3a01 SHA256 ba48e0bc127dedc42b9ab13197afded19a1a620ea94dd3f653e826f43a5dfb7c +AUX fix_installation.patch 5070 RMD160 d88450a9e2e1252b95d6180311b5051ef89ed4f7 SHA1 cc01a0d91e5734130db7e80709e9b0975ab8a95b SHA256 e070b2e47e6883a795be442ecd9c8aa618af468a826ccad67b7ee99b23ae5a1a +DIST smile-0.9.10.tar.gz 10484086 RMD160 23dfea19081572e33dc3449d5070ab5965f6d000 SHA1 94f2e8986e8e5df915157b403270b72dd1a31892 SHA256 81e56091b0736f85ecd36f659e1df1d4336a2461b39f956b6f2ca7378675572e +EBUILD smile-0.9.10.ebuild 1479 RMD160 35c461ab06d3c72a3d4db66f30245aab46a64ee2 SHA1 49488c7b083722444799c72aa72d9ad472fc35a6 SHA256 6a50cdea981b16ea974de198d148424640ac1d27c3f6db32a1c4f9bf8da01135 +MISC ChangeLog 509 RMD160 fc6c37f8184a19c8b9074fc75acec7aa2c9b15d2 SHA1 b72161a0b0d1de259b9f4092b28eab01a99b54f4 SHA256 a7cef328abac463f466c293bfd7c64e34d6b505a7cd0701469a188c86ab1f7ce +MISC metadata.xml 294 RMD160 ac4e1baa0a1839ae0a807a9d4b915134788d6aa1 SHA1 82865de14486cb30dc9ebfe6f1aecc9c86c0075b SHA256 209af586ae032f00659b69da17d4186854660be14b244d31aa0bea2005c2c5ba 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 +} |