diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-31 07:46:45 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-31 07:46:45 +0000 |
commit | d1053de2556f02abf5d55379514a17c1d5318b91 (patch) | |
tree | 898b86785db9dd1cd430d1b1cc6caef0b9b0e1c7 /net-im/psimedia | |
parent | Move back to versioned virtuals as discussed on dev ml. So chop chop with mig... (diff) | |
download | historical-d1053de2556f02abf5d55379514a17c1d5318b91.tar.gz historical-d1053de2556f02abf5d55379514a17c1d5318b91.tar.bz2 historical-d1053de2556f02abf5d55379514a17c1d5318b91.zip |
Remove support for V4L v1 because linux-headers-2.6.38 stopped shipping linux/videodev.h.
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'net-im/psimedia')
-rw-r--r-- | net-im/psimedia/ChangeLog | 7 | ||||
-rw-r--r-- | net-im/psimedia/Manifest | 17 | ||||
-rw-r--r-- | net-im/psimedia/files/psimedia-1.0.3-linux-headers-2.6.38.patch | 86 | ||||
-rw-r--r-- | net-im/psimedia/psimedia-1.0.3-r1.ebuild | 5 | ||||
-rw-r--r-- | net-im/psimedia/psimedia-1.0.3.ebuild | 5 |
5 files changed, 111 insertions, 9 deletions
diff --git a/net-im/psimedia/ChangeLog b/net-im/psimedia/ChangeLog index 1f3998f51c15..dc42f62b5446 100644 --- a/net-im/psimedia/ChangeLog +++ b/net-im/psimedia/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-im/psimedia # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/ChangeLog,v 1.15 2011/02/01 06:34:35 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/ChangeLog,v 1.16 2011/03/31 07:46:45 ssuominen Exp $ + + 31 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> psimedia-1.0.3-r1.ebuild, + +files/psimedia-1.0.3-linux-headers-2.6.38.patch: + Remove support for V4L v1 because linux-headers-2.6.38 stopped shipping + linux/videodev.h. *psimedia-1.0.3-r1 (01 Feb 2011) diff --git a/net-im/psimedia/Manifest b/net-im/psimedia/Manifest index bb8d1120d49d..84d8276e1fe5 100644 --- a/net-im/psimedia/Manifest +++ b/net-im/psimedia/Manifest @@ -1,5 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX psimedia-1.0.3-linux-headers-2.6.38.patch 2121 RMD160 3d4bc8d04866545f653d1e046b8aaffb231c4395 SHA1 858676241058e3c050315f92afef26fbc6430bf2 SHA256 1c07814003bf749dcd01b580546077d87573c4b947ae2b6f2176318790546036 DIST psimedia-1.0.3.tar.bz2 236134 RMD160 c5c13cdd1606e38f75852ea134478ee3d2d449a2 SHA1 75428d427227ffa87ca40d7e29567a2d410fb9ff SHA256 019d18034fa94299d896448841d129fd1bad5f58daeb2aba7be540a7d06fb23b -EBUILD psimedia-1.0.3-r1.ebuild 1863 RMD160 a6f5bba0dcfb8c5cef63ed9e9fd0c4445b20d74e SHA1 2546743780d4285ae3588bf11e3fcfe4315eb0c6 SHA256 4c9ca2f8f82da8c54ca6c7181c101706f8b5fb411b064f021e6b0b1960f7e192 -EBUILD psimedia-1.0.3.ebuild 1790 RMD160 a19afa89956282851bbb44c6725c0f88e345a9e2 SHA1 db9e646a9b9d627e5b07ba6b5c94d5f3b2c96d1a SHA256 b68c8b5f9a5b2d8ac75b64db54efb98cf0d0e62935972376c91ef70bb5f31a9b -MISC ChangeLog 2144 RMD160 069672601eb6f971593a55b478cd0121f2e95ee0 SHA1 c9f1f3286c033a83e2323506b2ab6410c69bad9a SHA256 1a62b5e78d7d56db8257a8d9ca2b0bab98f17adbfe9837f1aff87c66f082295a +EBUILD psimedia-1.0.3-r1.ebuild 1969 RMD160 087d0b2ce455cf25f1ef7c126eea7ef739bbe6f9 SHA1 ebaee1fb3caef9a5a7cf0e19193fb33c05170d89 SHA256 69376fbdd1c2462865a48d5dada518cc6ab44b41775adca001355f46e0873c29 +EBUILD psimedia-1.0.3.ebuild 1751 RMD160 b6ddebd01c8ac6572111d550d0f3797653adc07b SHA1 a548120dee82186f92ddba54055ac4c26ad2f1de SHA256 596c280f4684ed867296e8cd374679df226e28dfc4e3ad972c4a80c057f4d13f +MISC ChangeLog 2377 RMD160 6e6dd27ecac9705a858c2ba8be5c919019b2e364 SHA1 a1bf4ad00e31c7512675f06eb258e98d4fa2f931 SHA256 45ee87947fc9bf42e8f2a1c469f74ff0fbc44733c28e81f25586982bdf1f8bb2 MISC metadata.xml 396 RMD160 9eb1165592bbcc58bae1d5679427bc820c9792e2 SHA1 5ee7920f2fbd2d748ca0864b48e6fd6416c3135e SHA256 cbd143bdce40949837ccb6d7e405f8e9ae3cd0370fc4afde0e6f3e08b39a9966 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk2UMZgACgkQXkR9YqOcLPF8mgD/YnAfhiDgCjjeUfidvsEDXOoG +lG5WJFGCnZvFWRVhJy8BAKP7dlQ7ltR/mbDZ2ZOvuyO7oai/9H6wUm4Fy/RBBtw5 +=ubV9 +-----END PGP SIGNATURE----- diff --git a/net-im/psimedia/files/psimedia-1.0.3-linux-headers-2.6.38.patch b/net-im/psimedia/files/psimedia-1.0.3-linux-headers-2.6.38.patch new file mode 100644 index 000000000000..b6076d12cbf2 --- /dev/null +++ b/net-im/psimedia/files/psimedia-1.0.3-linux-headers-2.6.38.patch @@ -0,0 +1,86 @@ +http://pkgs.fedoraproject.org/gitweb/?p=psimedia.git;a=blob_plain;f=psimedia-remove-v4l.patch;hb=HEAD + +--- gstprovider/deviceenum/deviceenum_unix.cpp ++++ gstprovider/deviceenum/deviceenum_unix.cpp +@@ -35,7 +35,7 @@ + # include <sys/stat.h> + # include <dirent.h> + # include <sys/ioctl.h> +-# include <linux/videodev.h> ++# include <linux/videodev2.h> + #endif + + namespace DeviceEnum { +@@ -478,72 +478,7 @@ + // v4l detection scheme adapted from PWLib (used by Ekiga/Gnomemeeting) + static QList<Item> get_v4l_items() + { +-#ifdef Q_OS_LINUX +- QList<Item> out; +- +- QList<V4LName> list = get_v4l_names("/sys/class/video4linux", true); +- if(list.isEmpty()) +- list = get_v4l_names("/proc/video/dev", false); +- +- // if we can't find anything, then do a raw scan for possibilities +- if(list.isEmpty()) +- { +- QStringList possible = scan_for_videodevs("/dev"); +- foreach(QString str, possible) +- { +- V4LName v; +- v.dev = str; +- list += v; +- } +- } +- +- for(int n = 0; n < list.count(); ++n) +- { +- V4LName &v = list[n]; +- +- // if we already have a friendly name then we'll skip the confirm +- // in order to save resources. the only real drawback here that +- // I can think of is if the device isn't a capture type. but +- // what does it mean to have a V4L device that isn't capture?? +- if(v.friendlyName.isEmpty()) +- { +- int fd = open(QFile::encodeName(v.dev).data(), O_RDONLY | O_NONBLOCK); +- if(fd == -1) +- continue; +- +- // get video capabilities and close +- struct video_capability caps; +- memset(&caps, 0, sizeof(caps)); +- int ret = ioctl(fd, VIDIOCGCAP, &caps); +- close(fd); +- if(ret == -1) +- continue; +- +- if(!(caps.type & VID_TYPE_CAPTURE)) +- continue; +- +- v.friendlyName = caps.name; +- } +- +- Item i; +- i.type = Item::Video; +- i.dir = Item::Input; +- i.name = v.friendlyName; +- i.driver = "v4l"; +- i.id = v.dev; +- +- // HACK +- if(v.friendlyName == "Labtec Webcam Notebook") +- i.explicitCaptureSize = QSize(640, 480); +- +- out += i; +- } +- +- return out; +-#else +- // return empty list if non-linux + return QList<Item>(); +-#endif + } + + static QList<Item> get_v4l2_items() diff --git a/net-im/psimedia/psimedia-1.0.3-r1.ebuild b/net-im/psimedia/psimedia-1.0.3-r1.ebuild index 563c8ac70f5e..5379f9a07cc4 100644 --- a/net-im/psimedia/psimedia-1.0.3-r1.ebuild +++ b/net-im/psimedia/psimedia-1.0.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/psimedia-1.0.3-r1.ebuild,v 1.2 2011/02/04 21:23:55 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/psimedia-1.0.3-r1.ebuild,v 1.3 2011/03/31 07:46:45 ssuominen Exp $ EAPI="2" @@ -29,7 +29,6 @@ RDEPEND="${COMMON_DEPEND} >=media-plugins/gst-plugins-theora-0.10.22 >=media-plugins/gst-plugins-alsa-0.10.22 >=media-plugins/gst-plugins-ogg-0.10.22 - >=media-plugins/gst-plugins-v4l-0.10.22 media-plugins/gst-plugins-v4l2 media-plugins/gst-plugins-jpeg !<net-im/psi-0.13_rc1 @@ -42,6 +41,8 @@ src_prepare() { sed -e '/^TEMPLATE/a CONFIG += ordered' -i psimedia.pro || die # Don't build demo if we don't need that. use demo || { sed -e '/^SUBDIRS[[:space:]]*+=[[:space:]]*demo[[:space:]]*$/d;' -i psimedia.pro || die; } + # Remove support for V4L v1 because linux-headers-2.6.38 stopped shipping linux/videodev.h. + epatch "${FILESDIR}"/${P}-linux-headers-2.6.38.patch } src_configure() { diff --git a/net-im/psimedia/psimedia-1.0.3.ebuild b/net-im/psimedia/psimedia-1.0.3.ebuild index a0ec97187b86..c5a357c5bb11 100644 --- a/net-im/psimedia/psimedia-1.0.3.ebuild +++ b/net-im/psimedia/psimedia-1.0.3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/psimedia-1.0.3.ebuild,v 1.10 2010/11/06 19:04:49 halcy0n Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/psimedia-1.0.3.ebuild,v 1.11 2011/03/31 07:46:45 ssuominen Exp $ EAPI="2" @@ -30,7 +30,6 @@ RDEPEND="${DEPEND} >=media-plugins/gst-plugins-theora-0.10.22 >=media-plugins/gst-plugins-alsa-0.10.22 >=media-plugins/gst-plugins-ogg-0.10.22 - >=media-plugins/gst-plugins-v4l-0.10.22 media-plugins/gst-plugins-v4l2 media-plugins/gst-plugins-jpeg !<net-im/psi-0.13_rc1 |