diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2007-12-23 22:05:10 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2007-12-23 22:05:10 +0000 |
commit | 5d521ec9ffa92cf153ffb71a5c0f99feaeec6134 (patch) | |
tree | 7cd8fe9c86078f93262a17893c98450aa6a08084 /media-plugins/vdr-graphtft | |
parent | version bump (diff) | |
download | gentoo-2-5d521ec9ffa92cf153ffb71a5c0f99feaeec6134.tar.gz gentoo-2-5d521ec9ffa92cf153ffb71a5c0f99feaeec6134.tar.bz2 gentoo-2-5d521ec9ffa92cf153ffb71a5c0f99feaeec6134.zip |
initial ebuild, find older versions on overlay vdr-testing; Thanks to T.Kost, T.Dressler, S.Grebe for testing on graphtft-fe part
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-plugins/vdr-graphtft')
-rw-r--r-- | media-plugins/vdr-graphtft/ChangeLog | 13 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/Manifest | 33 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/files/confd | 55 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha | 6 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/files/graphtft-fe | 33 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/files/rc-addon.sh | 12 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff | 99 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/metadata.xml | 9 | ||||
-rw-r--r-- | media-plugins/vdr-graphtft/vdr-graphtft-0.1.16_alpha.ebuild | 98 |
9 files changed, 358 insertions, 0 deletions
diff --git a/media-plugins/vdr-graphtft/ChangeLog b/media-plugins/vdr-graphtft/ChangeLog new file mode 100644 index 000000000000..10885847bcaf --- /dev/null +++ b/media-plugins/vdr-graphtft/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for media-plugins/vdr-graphtft +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/ChangeLog,v 1.1 2007/12/23 22:05:09 hd_brummy Exp $ + +*vdr-graphtft-0.1.16_alpha (23 Dec 2007) + + 23 Dec 2007; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/vdr-graphtft-0.1.16_alpha-gentoo.diff, +files/confd, + +files/graphtft-fe, +files/rc-addon.sh, +metadata.xml, + +vdr-graphtft-0.1.16_alpha.ebuild: + initial ebuild, find older versions on overlay vdr-testing; Thanks to + T.Kost, T.Dressler, S.Grebe for testing on graphtft-fe part + diff --git a/media-plugins/vdr-graphtft/Manifest b/media-plugins/vdr-graphtft/Manifest new file mode 100644 index 000000000000..c3405f941782 --- /dev/null +++ b/media-plugins/vdr-graphtft/Manifest @@ -0,0 +1,33 @@ +AUX confd 1130 RMD160 b03091ef49b67c95b7f5dcd520e48a0bf3a2a009 SHA1 ae7e08addf16e831d2ca6bc4d10a99f01cbbb3bc SHA256 1f7c3e0f8a193bba2ee72deb7a04167c4863efc061349e247e0625d3d0c5da46 +MD5 a493fdd6bb7f879daaa4922fd0b02bad files/confd 1130 +RMD160 b03091ef49b67c95b7f5dcd520e48a0bf3a2a009 files/confd 1130 +SHA256 1f7c3e0f8a193bba2ee72deb7a04167c4863efc061349e247e0625d3d0c5da46 files/confd 1130 +AUX graphtft-fe 995 RMD160 669a22a7bd3d5d7efdf7468f2f1692d118b77a09 SHA1 722a35ee6c93632d669e789897eaed2b48baec41 SHA256 1f97afe93133b38e0a0679baf7abfa85d532d1908801da1cd1c70e5104338107 +MD5 9b3a9f7fd6ffe440fb17e7dcaae53fa9 files/graphtft-fe 995 +RMD160 669a22a7bd3d5d7efdf7468f2f1692d118b77a09 files/graphtft-fe 995 +SHA256 1f97afe93133b38e0a0679baf7abfa85d532d1908801da1cd1c70e5104338107 files/graphtft-fe 995 +AUX rc-addon.sh 210 RMD160 33fda4dc9b4fa571150c069f21d9959b94639a21 SHA1 f8a5f1bb67e2c07d1cf60fccf3d8374248cee83b SHA256 3f6d837d204bd5acd79853b8ab8e8d4941c1b550c0e376d2a80f616a2271b52e +MD5 ec4cd44826b0d29795db329634e967de files/rc-addon.sh 210 +RMD160 33fda4dc9b4fa571150c069f21d9959b94639a21 files/rc-addon.sh 210 +SHA256 3f6d837d204bd5acd79853b8ab8e8d4941c1b550c0e376d2a80f616a2271b52e files/rc-addon.sh 210 +AUX vdr-graphtft-0.1.16_alpha-gentoo.diff 3460 RMD160 3b262e53a004a986eb0d4d29aad3e38fe0838eeb SHA1 db6308b080bd19549c0dd5ab7c2606a37ea7e8d0 SHA256 c58a38565f2471cfe5f3c99f594393555a4c340e863a9afe4b417c2c3ba7bf31 +MD5 3c7748f4b964475789633e3ffc5408a1 files/vdr-graphtft-0.1.16_alpha-gentoo.diff 3460 +RMD160 3b262e53a004a986eb0d4d29aad3e38fe0838eeb files/vdr-graphtft-0.1.16_alpha-gentoo.diff 3460 +SHA256 c58a38565f2471cfe5f3c99f594393555a4c340e863a9afe4b417c2c3ba7bf31 files/vdr-graphtft-0.1.16_alpha-gentoo.diff 3460 +DIST DeepBlue-horchi-0.0.6.tar.bz2 1660439 RMD160 8ac510b9a65f8f4becef94519cf77f083709e96e SHA1 108321c1fc2d9e4e4aae650d9b6e842dfd5d6788 SHA256 75ca7ea853ae9fc3a30b656ab0f6599bc09c10d371b76990156ad9491ad2c8ee +DIST vdr-graphtft-0.1.16.alpha.tar.bz2 234797 RMD160 e5a491b480b37480a9c7574cb74bdc2b14113bbe SHA1 38a0af195c57ab2795ec9d566640018282aced15 SHA256 3ede1f5faeb37add03395a7296fe30ef505eb717c70c2000bfeca383f5b71457 +EBUILD vdr-graphtft-0.1.16_alpha.ebuild 2188 RMD160 9a876edf2a905672ec42db3b763bbc76c5e584fd SHA1 6e5285928ec341cef906a3b0c627133f545dff6b SHA256 ba5e6ca816a0c903d71dbdd59bb37bf5e97d4280135387f8a7040eba1fe41278 +MD5 4a7919b410c6eeaa1b940468991735e1 vdr-graphtft-0.1.16_alpha.ebuild 2188 +RMD160 9a876edf2a905672ec42db3b763bbc76c5e584fd vdr-graphtft-0.1.16_alpha.ebuild 2188 +SHA256 ba5e6ca816a0c903d71dbdd59bb37bf5e97d4280135387f8a7040eba1fe41278 vdr-graphtft-0.1.16_alpha.ebuild 2188 +MISC ChangeLog 515 RMD160 feb56ed81ee4db3d97134d9a8bf7270882bafca6 SHA1 00fa2bfadb24bc6dc3bfb95aaed45e5e5cad0bb9 SHA256 428a88ae914c167db98bd4291ffa5fff738f14108e606f2c8b7ac352ecbc4089 +MD5 1c9648c69ce11f419095d61298e25d26 ChangeLog 515 +RMD160 feb56ed81ee4db3d97134d9a8bf7270882bafca6 ChangeLog 515 +SHA256 428a88ae914c167db98bd4291ffa5fff738f14108e606f2c8b7ac352ecbc4089 ChangeLog 515 +MISC metadata.xml 262 RMD160 7546813a650c87e871e1803630eec93651cf171b SHA1 50f15b18b32db880cb94fa98480e865252f12e0e SHA256 e50bacec7fb98fb225d1d709825110afe8c6e04960458ec53758da0f067a18ff +MD5 aff69c6b63a1aa0e15e836941b67f931 metadata.xml 262 +RMD160 7546813a650c87e871e1803630eec93651cf171b metadata.xml 262 +SHA256 e50bacec7fb98fb225d1d709825110afe8c6e04960458ec53758da0f067a18ff metadata.xml 262 +MD5 2c82bddfcbd27ddfcf2b85e206407607 files/digest-vdr-graphtft-0.1.16_alpha 551 +RMD160 fc7fa46e6610f3baa8ef596135d45f85e5e06cd0 files/digest-vdr-graphtft-0.1.16_alpha 551 +SHA256 4649e53c4797352c2569ac7ad3bf5e9236b9cb08cb6778f39c2e3644b99305c3 files/digest-vdr-graphtft-0.1.16_alpha 551 diff --git a/media-plugins/vdr-graphtft/files/confd b/media-plugins/vdr-graphtft/files/confd new file mode 100644 index 000000000000..b00c4607e34b --- /dev/null +++ b/media-plugins/vdr-graphtft/files/confd @@ -0,0 +1,55 @@ +# /etc/conf.d/vdr.graphtft +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/files/confd,v 1.1 2007/12/23 22:05:10 hd_brummy Exp $ + +####### Global config for Graphtft #################### + +# +# set the DIR of the Framebuffer Device +# allowed values: device_names directFB none +# default: /dev/fb0 +#GRAPHTFT_DEVICE=/dev/fb0 + + +###### Configuration for graphtft-fe ################## +# +# set GRAPHTFT_DEVICE="" to none + +# set your tft display +# no default values +# default: not set, exemple +#GRAPHTFT_DISPLAY=":0.1" + +# switch to user +# default user root ; depand on your x configuration +# +#GRAPHTFT_USER="root" + +# set the width of your display +# allowed values: +# default: 800 +#GRAPHTFT_SCREEN_WIDTH="800" + +# set the height of your display +# allowed values: +# default: 480 +#GRAPHTFT_SCREEN_HEIGHT="480" + +# run output without windowsframe +# allowed values: yes no +# default: yes +#GRAPHTFT_NO_FRAME="yes" + +# set the IP to your X Display +# allowed values: ip address +# default: localhost IP +#GRAPHTFT_HOST="127.0.0.1" + +# set the port to your X Display +# allowed values: portnumber +# default: 2039 +#GRAPHTFT_PORT="2039" + +# set the logevel for graphtft-fe +# allowed values: 0 1 2 3 +# default: 0 +#GRAPHTFT_LOG_LEVEL="0" diff --git a/media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha b/media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha new file mode 100644 index 000000000000..972526146144 --- /dev/null +++ b/media-plugins/vdr-graphtft/files/digest-vdr-graphtft-0.1.16_alpha @@ -0,0 +1,6 @@ +MD5 3ae5def775b37f24b196a6e5bcabc43c DeepBlue-horchi-0.0.6.tar.bz2 1660439 +RMD160 8ac510b9a65f8f4becef94519cf77f083709e96e DeepBlue-horchi-0.0.6.tar.bz2 1660439 +SHA256 75ca7ea853ae9fc3a30b656ab0f6599bc09c10d371b76990156ad9491ad2c8ee DeepBlue-horchi-0.0.6.tar.bz2 1660439 +MD5 677103f302335248e57b0c5dc8678531 vdr-graphtft-0.1.16.alpha.tar.bz2 234797 +RMD160 e5a491b480b37480a9c7574cb74bdc2b14113bbe vdr-graphtft-0.1.16.alpha.tar.bz2 234797 +SHA256 3ede1f5faeb37add03395a7296fe30ef505eb717c70c2000bfeca383f5b71457 vdr-graphtft-0.1.16.alpha.tar.bz2 234797 diff --git a/media-plugins/vdr-graphtft/files/graphtft-fe b/media-plugins/vdr-graphtft/files/graphtft-fe new file mode 100644 index 000000000000..32d6b915f1ce --- /dev/null +++ b/media-plugins/vdr-graphtft/files/graphtft-fe @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +. /etc/conf.d/vdr.graphtft + +export DISPLAY=${GRAPHTFT_DISPLAY} + +: ${GRAPHTFT_USER:=root} + +OPTIONS="-h ${GRAPHTFT_HOST:=127.0.0.1}" +OPTIONS="${OPTIONS} -p ${GRAPHTFT_PORT:=2039}" +OPTIONS="${OPTIONS} -e ${GRAPHTFT_LOG_LEVEL:=0}" +OPTIONS="${OPTIONS} -W ${GRAPHTFT_SCREEN_WIDTH:=800}" +OPTIONS="${OPTIONS} -H ${GRAPHTFT_SCREEN_HEIGHT:=480}" +[ "${GRAPHTFT_NO_FRAME}" = "yes" ] && OPTIONS="${OPTIONS} -n" +[ "${GRAPHTFT_RESIZE_IMAGE}" = "yes" ] && OPTIONS="${OPTIONS} -r" + +# -d <file> dump each image to file (default off) + +start() { + ebegin "starting graphtft-fe ..." + start-stop-daemon --make-pidfile --background --pidfile /var/run/graphtft-fe.pid \ + --chuid ${GRAPHTFT_USER} --start --exec /usr/bin/graphtft-fe -- ${OPTIONS} + eend $? +} + +stop() { + ebegin "stopping graphtft ..." + start-stop-daemon --stop --pidfile /var/run/graphtft-fe.pid + eend $? +} + diff --git a/media-plugins/vdr-graphtft/files/rc-addon.sh b/media-plugins/vdr-graphtft/files/rc-addon.sh new file mode 100644 index 000000000000..0d191ca637a0 --- /dev/null +++ b/media-plugins/vdr-graphtft/files/rc-addon.sh @@ -0,0 +1,12 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/files/rc-addon.sh,v 1.1 2007/12/23 22:05:10 hd_brummy Exp $ +# +# rc-addon-script for plugin graphtft & graphtft-fe +# +# Joerg Bornkessel <hd_brummy@g.o> + +plugin_pre_vdr_start() { + + : ${GRAPHTFT_DEVICE:=/dev/fb0} + + add_plugin_param "-d ${GRAPHTFT_DEVICE}" +} diff --git a/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff new file mode 100644 index 000000000000..118d23cf582e --- /dev/null +++ b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.16_alpha-gentoo.diff @@ -0,0 +1,99 @@ +diff -Naur graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c +--- graphtft-0.1.16.alpha.orig/dfbrenderer/dfbrenderer.c 2007-12-12 20:15:39.223026383 +0100 ++++ graphtft-0.1.16.alpha/dfbrenderer/dfbrenderer.c 2007-12-12 20:17:01.430709769 +0100 +@@ -333,7 +333,7 @@ + else + { + const char* tmp = themePath.c_str(); +- asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname); ++ asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname); + } + + tell(4,"creating imageprovider for %s\n", fpath); +@@ -383,7 +383,7 @@ + + if (!fontCache.Contains(FontFaceSize(fontName, fontSize))) + { +- asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), fontName); ++ asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), fontName); + + tell(4,"creating font for %s\n", fpath); + +@@ -444,7 +444,7 @@ + + if (!fontCache.Contains(FontFaceSize(font_name, size))) + { +- asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), font_name); ++ asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), font_name); + + tell(4,"creating font for %s\n", fpath); + +diff -Naur graphtft-0.1.16.alpha.orig/graphtft.c graphtft-0.1.16.alpha/graphtft.c +--- graphtft-0.1.16.alpha.orig/graphtft.c 2007-12-12 20:15:39.246358112 +0100 ++++ graphtft-0.1.16.alpha/graphtft.c 2007-12-12 20:19:52.292300174 +0100 +@@ -20,6 +20,8 @@ + #include <graphtft.h> + #include <span.h> + ++#define DATA_DIR "/usr/share/vdr/graphTFT" ++ + //*************************************************************************** + // cGraphTFTMenu + //*************************************************************************** +@@ -255,14 +257,7 @@ + + #endif + +- // try to get the config dir +- +- if (!ConfigDirectory()) +- return false; +- +- // init +- +- GraphTFTSetup.PluginConfPath = strdup(ConfigDirectory()); ++ GraphTFTSetup.PluginConfPath = strdup(DATA_DIR); + + #if APIVERSNUM < 10507 + RegisterI18n(Phrases); +@@ -278,7 +273,7 @@ + if (loadThemes() != 0) + return false; + +- return display->Init(_dev, ConfigDirectory(), port); ++ return display->Init(_dev, DATA_DIR, port); + } + + //*************************************************************************** +@@ -294,8 +289,8 @@ + + // look for the themes in the config directory + +- asprintf(&buffer, "find %s/graphTFT/themes -follow -type f -name '*.theme' | sort", +- ConfigDirectory()); ++ asprintf(&buffer, "find %s/themes -follow -type f -name '*.theme' | sort", ++ DATA_DIR); + + p = popen(buffer, "r"); + +diff -Naur graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c +--- graphtft-0.1.16.alpha.orig/imlibrenderer/imlibrenderer.c 2007-12-12 20:15:39.369682970 +0100 ++++ graphtft-0.1.16.alpha/imlibrenderer/imlibrenderer.c 2007-12-12 20:20:35.006031224 +0100 +@@ -53,7 +53,7 @@ + + // font + +- std::ostringstream path; path << confPath.c_str() << "/graphTFT/fonts/"; ++ std::ostringstream path; path << confPath.c_str() << "/fonts/"; + imlib_add_path_to_font_path(path.str().c_str()); + + // new image +@@ -134,7 +134,7 @@ + if (fname[0] == '/') + path << fname; + else +- path << confPath << "/graphTFT/themes/" << themePath << "/" << fname; ++ path << confPath << "/themes/" << themePath << "/" << fname; + + new_image = imlib_load_image(path.str().c_str()); + diff --git a/media-plugins/vdr-graphtft/metadata.xml b/media-plugins/vdr-graphtft/metadata.xml new file mode 100644 index 000000000000..94d2eca26f15 --- /dev/null +++ b/media-plugins/vdr-graphtft/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> + <maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + </maintainer> +</pkgmetadata> diff --git a/media-plugins/vdr-graphtft/vdr-graphtft-0.1.16_alpha.ebuild b/media-plugins/vdr-graphtft/vdr-graphtft-0.1.16_alpha.ebuild new file mode 100644 index 000000000000..80bf14a53fd7 --- /dev/null +++ b/media-plugins/vdr-graphtft/vdr-graphtft-0.1.16_alpha.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-graphtft/vdr-graphtft-0.1.16_alpha.ebuild,v 1.1 2007/12/23 22:05:09 hd_brummy Exp $ + +MY_PV="${PV/_alpha/.alpha}" +MY_P="${PN}-${MY_PV}" + +inherit vdr-plugin + +DESCRIPTION="VDR plugin: GraphTFT" +HOMEPAGE="http://www.vdr-wiki.de/wiki/index.php/Graphtft-plugin (german)" +SRC_URI="http://www.jwendel.de/vdr/${MY_P}.tar.bz2 + http://www.jwendel.de/vdr/DeepBlue-horchi-0.0.6.tar.bz2" + +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-2 LGPL-2.1" +IUSE="directfb graphtft-fe" + +DEPEND=">=media-video/vdr-1.4.7-r9 + media-fonts/ttf-bitstream-vera + media-libs/imlib2 + media-gfx/imagemagick + gnome-base/libgtop + >=media-video/ffmpeg-0.4.8 + directfb? ( dev-libs/DirectFB ) + graphtft-fe? ( x11-libs/qt )" + +PATCHES="${FILESDIR}/${P}-gentoo.diff" + +S="${WORKDIR}/graphtft-${MY_PV}" + +pkg_setup() { + vdr-plugin_pkg_setup + + if ! built_with_use media-video/vdr graphtft; then + echo + eerror "Please recompile VDR with USE=\"graphtft\"" + die "Unpached VDR found" + echo + fi +} + +src_unpack() { + vdr-plugin_src_unpack + + sed -i "${WORKDIR}"/DeepBlue/DeepBlue.theme -e "s:Enigma:Vera:" + sed -i Makefile -e "s:WITH_X_COMM = 1:#WITH_X_COMM = 1:" + sed -i common.h -e "s:void tell:int tell:" + sed -i common.c -e "s:void tell:int tell:" + + if has_version ">=media-video/ffmpeg-0.4.9_p20070525" ; then + sed -i Makefile -e "s:#HAVE_SWSCALE:HAVE_SWSCALE:" + fi + + use directfb && sed -i Makefile \ + -e "s:#HAVE_DFB = 1:HAVE_DFB = 1:" + + use graphtft-fe && sed -i Makefile \ + -e "s:#WITH_X_COMM:WITH_X_COMM:" +} + +src_compile() { + vdr-plugin_src_compile + + if use graphtft-fe; then + cd "${S}"/graphtft-fe + sed -i build.sh -e "s:qmake-qt4:qmake:" + ./clean.sh + ./build.sh || die "build.sh failed" + fi +} + +src_install() { + vdr-plugin_src_install + + insinto /usr/share/vdr/graphTFT/themes/DeepBlue/ + doins -r "${WORKDIR}"/DeepBlue/* + + dosym /usr/share/fonts/ttf-bitstream-vera /usr/share/vdr/graphTFT/fonts + + dodoc "${S}"/documents/* + + if use graphtft-fe; then + cd "${S}"/graphtft-fe && dobin graphtft-fe + doinit graphtft-fe + fi +} + +pkg_postinst() { + vdr-plugin_pkg_postinst + + echo + elog "Graphtft-fe user:" + elog "Edit /etc/conf.d/vdr.graphtft" + elog "/etc/init.d/graphtft-fe start" + echo +} |