From 287a0ac71e8b6f677145ea4666d0e3d0cb6c6d5a Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Sun, 24 Mar 2013 17:49:03 +0000 Subject: bump (Portage version: 2.1.11.50/svn/Linux i686, unsigned Manifest commit) svn path=/vdr-devel/; revision=1170 --- media-video/vdr/ChangeLog | 6 + media-video/vdr/Manifest | 6 +- media-video/vdr/files/vdr-1.7.42_gentoo.patch | 67 +++++ media-video/vdr/vdr-1.7.42.ebuild | 401 ++++++++++++++++++++++++++ 4 files changed, 479 insertions(+), 1 deletion(-) create mode 100644 media-video/vdr/files/vdr-1.7.42_gentoo.patch create mode 100644 media-video/vdr/vdr-1.7.42.ebuild (limited to 'media-video') diff --git a/media-video/vdr/ChangeLog b/media-video/vdr/ChangeLog index f94474e..ae955a6 100644 --- a/media-video/vdr/ChangeLog +++ b/media-video/vdr/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*vdr-1.7.42 (24 Mar 2013) + + 24 Mar 2013; Joerg Bornkessel +vdr-1.7.42.ebuild, + +files/vdr-1.7.42_gentoo.patch: + bump + *vdr-1.7.41-r1 (20 Mar 2013) 20 Mar 2013; Joerg Bornkessel +vdr-1.7.41-r1.ebuild: diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest index 3d4cd54..061d4ca 100644 --- a/media-video/vdr/Manifest +++ b/media-video/vdr/Manifest @@ -17,6 +17,7 @@ AUX vdr-1.7.39-fixutf8.diff 431 SHA256 74c33c81db03788171fae1d5a05edfb0b2d3acc0a AUX vdr-1.7.39_gentoo.patch 2251 SHA256 f0a5e29fd5144b64ca08cc73108c171601ca6e7dd611582d2927ffd38ebe5e10 SHA512 4a02c78f8f537c36ddc01eed24a04e36a61a77a1ea7b0f551723cfbad593f34689f75f442dac6a233614a3692edbd6b618b42d2ee4f972beee079cf8654b55d6 WHIRLPOOL 5785d2a5760b42f694d00943451cbc5f573ccb27ea77600a18eb118389a3576f0afae60448c428a28380382e7cbe80345784f086629d831840f30f1550dcfaec AUX vdr-1.7.40_gentoo.patch 2251 SHA256 f0a5e29fd5144b64ca08cc73108c171601ca6e7dd611582d2927ffd38ebe5e10 SHA512 4a02c78f8f537c36ddc01eed24a04e36a61a77a1ea7b0f551723cfbad593f34689f75f442dac6a233614a3692edbd6b618b42d2ee4f972beee079cf8654b55d6 WHIRLPOOL 5785d2a5760b42f694d00943451cbc5f573ccb27ea77600a18eb118389a3576f0afae60448c428a28380382e7cbe80345784f086629d831840f30f1550dcfaec AUX vdr-1.7.41_gentoo.patch 2251 SHA256 f0a5e29fd5144b64ca08cc73108c171601ca6e7dd611582d2927ffd38ebe5e10 SHA512 4a02c78f8f537c36ddc01eed24a04e36a61a77a1ea7b0f551723cfbad593f34689f75f442dac6a233614a3692edbd6b618b42d2ee4f972beee079cf8654b55d6 WHIRLPOOL 5785d2a5760b42f694d00943451cbc5f573ccb27ea77600a18eb118389a3576f0afae60448c428a28380382e7cbe80345784f086629d831840f30f1550dcfaec +AUX vdr-1.7.42_gentoo.patch 2251 SHA256 f0a5e29fd5144b64ca08cc73108c171601ca6e7dd611582d2927ffd38ebe5e10 SHA512 4a02c78f8f537c36ddc01eed24a04e36a61a77a1ea7b0f551723cfbad593f34689f75f442dac6a233614a3692edbd6b618b42d2ee4f972beee079cf8654b55d6 WHIRLPOOL 5785d2a5760b42f694d00943451cbc5f573ccb27ea77600a18eb118389a3576f0afae60448c428a28380382e7cbe80345784f086629d831840f30f1550dcfaec DIST extpng-vdr-1.7.23v1-gentoo-edition.patch 572319 SHA256 ea8347fe4bf07e2b4924febb28018df9b3ebfa0ff73564c7dae8d32d35162a7e SHA512 8c0d636fa9e0c205a34631f6f7eaa3ff2a3ab3c9d612d4cde244c61e8c5eecdf978e63aabb870a5c3e03752279ee26ea73047dc021e2422d5e4a75a646a12a75 WHIRLPOOL e62c52f63ba8d29e3c26ac64c9f2a70b2fa881c716969cd6d61d21c54021663ff47f1706fc870d52789e95aebf1d9ae9a42cdebacd32e343b5d99bff4d7b3460 DIST extpng-vdr-1.7.24v2-gentoo-edition.patch 445832 SHA256 a5646c64530ebc9068a95f51e61803f49b248b97605a09466e027c97d75730a5 SHA512 d65987d4eda1dce6da0f9f161b8cc46e66678925023171a6d1651dbf834c0e1c3205a5252f93722ff17ea0eb2d73b17bfa338f67b29252c8567007220d1abb2e WHIRLPOOL e6c8a19221f4866e486ecdcf844a63c47491946c85691b8024efaf023bffd8de58f671445e3fa63b3207e53e4da02210aea7f141d6a12dcf02cd768ef799b721 DIST extpng-vdr-1.7.25-gentoo-edition.patch.bz2 73764 SHA256 022e5c793f806164f9f1ae4da253db6a1dbcd997241d7523ce489040bbab8fb7 SHA512 103a6a5c8583fc7d77b4b1a3932c7b6b8f70a334384e8798ec8ea946b344610b21aa042eceeacdf5b7ebcec0e720fb124b0c0d8558fa2ec618b1299d56206fbd WHIRLPOOL d7648f5bbab307a97d4d94ba6404e05e6039a9a7f44bcbe5bbac9ff1867ada17401189323cc310fdc289154802e3d6e3e21516b35361140628487cee257ce927 @@ -28,6 +29,7 @@ DIST extpng-vdr-1.7.33-gentoo-edition-v18.patch.bz2 64830 SHA256 7b57767cd179a10 DIST extpng-vdr-1.7.36-gentoo-edition-v1.patch.bz2 64699 SHA256 4fcc238274844ec4c1ad61067914d836302663a7fbbb33a958c2334550731a48 SHA512 1fbc458107d9b642e1ad79f47e95cb524a29b0da6b9dad6b19536a7702beb02e2fca564a743283ab15f86176e3689a9baaf09090655c5b523e6c420ac59c2747 WHIRLPOOL c32a357dc3a9d8e916b1047a0ab334f51e10b2474cd22042b26fe3c53c21e002967a5eab1e4cbeb656ce26a12eb195f713ea2b32d631b4bb1f68b363bf10306d DIST extpng-vdr-1.7.38-gentoo-edition-v5.patch.bz2 64748 SHA256 1d03eee87b2db57efa3548f3af5545d7b0ad3ac31e1717842688d1448ba4d0ab SHA512 3f9cb903391315c9d6b89ed9ad8970d01e49046f0b6ebf632a7300221715d686340aa1ece186b7bcd9ab3b944822208858647803f3f46b8bbe68d42320a1cc2d WHIRLPOOL 34fc538da9405666fbfb64871597c7dfa055f84c54e5638a58a20a6a0b8819d2e44edf19008746686da6209fdca91634cdbb7c1c80fd57b4280e126a39ac845b DIST extpng-vdr-1.7.39-gentoo-edition-v4.patch.bz2 64155 SHA256 0fb6f8927bc215bdbfd2e41a8c5018eebeafd87f2caba4f7aae0972e3716eb33 SHA512 2d5160390cdf9edd480e02c3ea74dc87b54aff598a95513780af803d69b1ca1e028852ee69697f51ec153377bcf76bf6f779e4884f5d5126365daff0ce415430 WHIRLPOOL 37b36279c93d8190a4dfbb4c89b9f13922a8e1d9685652b7b74159970a9384665859e3adade7ee0cf3274eb94decc4c601054b037631d333130f3a15c9c5b03f +DIST extpng-vdr-1.7.42-gentoo-edition-v1.patch.bz2 65000 SHA256 9cca4dd7885b129b311263744d074d8351f52fc52312bd17f9c7a038bfea94a9 SHA512 7aaaadffd324ec4aa6287de693648b70782c87ded16533c62bf9d78ce28433d4b19e5bb7dd45891b57be19dea3e72dc9c5259e9bb9a74958bcd5f2f2a7a0f5f2 WHIRLPOOL 06335cb030a31051d8b444bc3209ed80551535862d4580491d9339137e0da559c5cd85e69e798a9efc19fb3bafff393bbcdb6d99cfd2b45f5f2ffeb13a16929f DIST vdr-1.7.23.tar.bz2 761767 SHA256 1d1c25e66f51c5489ed0238601002c7ffa9ad5c666f45b51c311fa13bd018c0e SHA512 206616a09a0cfb494426e3b9800f45c3341c6df75ce806a059c975b0edcc33027fd3c62c5e1c541ef798d7af2922dd0d24dd038c437939869c89d5a0ada3cb19 WHIRLPOOL 4b268220b9a3047a8bb9d8eac31455f3b9b5c4f6587c86e5daa4c31bb2f3d6c86296a7827acb8bec7d73caaaed252b6102fadb92054368e1d897c41ddaa6351a DIST vdr-1.7.24.tar.bz2 765472 SHA256 a1209612c69bab9bd37078b65c5da26b1173f075aba742acb6dc07303beb97a8 SHA512 87ea0d107eae8d363920d311994daec63b7820fbebab422052f4cd4ba22fa147d4aaaa7c000e0d42dfba2e3ead768d254b173e1bb793f803a1b05add5c9c23f1 WHIRLPOOL afef1e898a5d1620faa46cf31d575ca34034ca80b04399ea2b59ece8e92b039bc5431c89d4e2924e8ccb0b7de9755946d1c79ac6d4c819d8dd87a088af45c319 DIST vdr-1.7.25.tar.bz2 768334 SHA256 3e5438ee46e32cdfcd074bd55246965796d93c33984be3b2a21e51983ac48cf4 SHA512 92d1a29edad54eecd1f2f75e48e6af4b14fdcf41902284db56531ee979556377a1f7f7c0b0b67b17559644a43f3b0ea79df861d55a8be4ea26435a605bfeb684 WHIRLPOOL bbcc610ad4bae9f429aa7ecd8638fd3c840214300b1181a508c1ade660533e33164613a043146a48d01759087f12353108be6215a6d965c9329e85c025b23414 @@ -40,6 +42,7 @@ DIST vdr-1.7.38.tar.bz2 826458 SHA256 bb37ff764b208dd3eee3a66df6e3225490d9ab9dfd DIST vdr-1.7.39.tar.bz2 832445 SHA256 22d9036048fa1beed19db9218057304807b0d02d3cf1e3825901560afec05be9 SHA512 f050e726cad096dd48eb73010f6a24db87ea5aaff4e20f5184670ed13c824cbe2ba9ada756e418fe9a5a801f0b10c20158f0ad8e33cfee1216c8b9d97e85bba4 WHIRLPOOL 6fa8e3dc73bacbc944b7de6a0160843ea8f245041ee3d98d9a89e0fa7aabaf092452efe5ce0e0a26b79d1f475d29f106d6c2c5f374848c849c9cf84196262714 DIST vdr-1.7.40.tar.bz2 835552 SHA256 295f4b2df6791d9001b9fa63a8076dfee68490f23d204c9295c4d89e6f50c165 SHA512 fc02b8d4605c88f0b031a1d0b77e337d28516d826cf133e45065c1dfc237b6042bbb9172c31914dea021a9f6752563daea350db038e84f30772a24e5f289fdff WHIRLPOOL f550ab4a9581e155fe7904a0952bbe222c9c235ed27152c561cd047451308230a653615fdc8458d1f83862724f59316f8b9c2918c7a1a5196fed30035c1a498e DIST vdr-1.7.41.tar.bz2 836810 SHA256 3b071c10bee5af202f1bc2967a8441d8390c3493baa1d547a64cdf16460e4995 SHA512 0ef1d7f05a6a1fdaa7c078e8311b8b461de0310a95a56d5c3227403ebafa49b93aa4119c5ea7ced73f27a7f5e486d74b29d0703758610dd483b8ddda0a7294df WHIRLPOOL 35992365b11879fc41012cf59c365a57d657377a247888866fd1f4cf1e9cb58807f88b60d06cfcc2712af93c97ae58e1389446caf6065c71d96665a7cc656fcb +DIST vdr-1.7.42.tar.bz2 836794 SHA256 1d6fb1e84a2710dab14c07a0500e348efb534718afc4c6843cdfe806800511a1 SHA512 8698e16674e5b1c4825c14356ff23c123dfa03763fed198c302b7c71cba877b674663a82a17448f532dea7a46826eef8864d5a5c4a06c95a7839516417e718f4 WHIRLPOOL 209a15cd4e4fa625a078390e4e476738187b6a541071b7b2ac37b4946ab9bb90ee3a7d8325c843257f4eb4a8881975cbb1c2c4f68f97259730cd9a1920320a3b EBUILD vdr-1.7.23.ebuild 11086 SHA256 8159dd9cb2115e96eb24bf18a1aa95e3cd17fd11ea1df2bd1b021cf36defe0e5 SHA512 67b294bdf481f8f67794679347c1262cc6234bd7e219c52b3b5ffce5db7a387246bc617d098cb1e30881eef1e440a9ec5d624388e79816b61c232f27465b76ee WHIRLPOOL 955b29eec06c34b2a0dc248bb1b7b8ef73a00c9b5b076b103e75badce172e2429119b8ae4a7f17abbf9088cfb63fac5dddacadbe33cbfd55156305bda2b1fe24 EBUILD vdr-1.7.24-r1.ebuild 10006 SHA256 f45133c1aaed00ec40ac734c9b4e8bb489b697211716875cd7e74e8ace88a91c SHA512 b645147ec6721d43d22891d604e39d4c1f6db2f8c76d69690c9cf72ca1aa1744f894107d7bb8ca6c5688977b06e6a38a76bafcfeeea133ed487754423f321f32 WHIRLPOOL a6df9b007268253946cadcccb979fcc76348dbc8a215e76e3e089056ff49317581a5a69d258832e35dfb2f0d347fcf57983aa6c27a2906dd305ebcbaba8d3e2d EBUILD vdr-1.7.25.ebuild 9961 SHA256 3817f91da7c40a246f48d14cefefcd4c029364da3da835616f16a2faeb4d155b SHA512 7806049d2d92be599d0ce103e1e2c5233f8411a389e345f291a8205bd7a4b7984d5e9c81a93cf2bb3db834fae4b4ea16cf0f458a09481579ad7e6e5eb83a8d39 WHIRLPOOL cc8cef1065e4f0c87bb53f75df6cc8c792e09734b094b9b38645a5f66da3b757ead2c86d638bd6fd8a201c7563921de46072ed66015834617def33c54eda4deb @@ -55,5 +58,6 @@ EBUILD vdr-1.7.39.ebuild 12028 SHA256 33a6413ea715be0b9e529e22023217b0876b7ae94f EBUILD vdr-1.7.40.ebuild 11641 SHA256 3e17c3fe0fa6989cba49448bf2a36a8a89702c7adc9a28dc6cb023b899372521 SHA512 81b63e0d71661885d5a1f1543c2f2b317173e018f09d06cf02b221b79ae6a3df54818bdc900cd072cd698b4c91dfa86caedc35e0015cf268e921ac327af746d8 WHIRLPOOL dd3e5637d3ddb0eec9f08e64a58fc0eaf642bf3ebc220ebd4154d0531c84f7b208f3cc2ea3c349b5a8eb67ed1c0f3ba5010bed716304730d80afcca3993c0767 EBUILD vdr-1.7.41-r1.ebuild 11479 SHA256 9aa1b0c5a3c754fc08f99dce5cc128029b39bc1ed49f64e39a63eba46f818588 SHA512 1404d3d7d5c4c4a14ac11081831f21d0c7868ae652f9e43d9a2a5e8ad84d7113e8a715c1a7495ce1b80fb7910a26d10f7c0fc7d28b36d3e230e327b753d08ffe WHIRLPOOL ff9f4adb970344fa2645a40eff0153df7e0f685cf2481bc59f3cadc731f07fd7157bc2bcf2cdcf1dd31c5bd4fb3542dd3bdf7054e6b7162160866a8ec84f41f5 EBUILD vdr-1.7.41.ebuild 11647 SHA256 8bc8c29d58f42b540233bcfe48fbac4cc9d43b6e24b65884acff6b5ada1dd483 SHA512 68caee08f773bfa4905db11608902cb8b7152fe1ac4bc8663f469331db21cc1347b3597d924cbb2d2c1bbaff7bc19564f16c06e1f538ce85c1177728ef1ec0cd WHIRLPOOL 7c6c244a3b60031820714e2a84c83cdc5d48c2532f7f01de3d8a6b0f40517c4382782969436ae148411fc9be479c15714dac0933d82ba15a5ae47f812abc33ab -MISC ChangeLog 23549 SHA256 688aa95634420afde23a681dcae38163b47002f981171e06dd2d87adcc62f9a7 SHA512 de462cbf1f89f38f1f674853d36d6042f473f4e6cd5e2fdff1d00a307c0d55c8c9be7a832db090c04d4f44fc872c0001f914bb96a3f05938f866ad442daa6eef WHIRLPOOL 3a45f3da797602c6100e5e2e8e6fe0f71f13dfaa79e39a917e6dc95fd12f62ce17cedc39c34ba7c02d16b6349cf5b17890decf80c6b9ae751503e385a39a0d1d +EBUILD vdr-1.7.42.ebuild 11094 SHA256 9a9392d7c03b65146fb55a3f37907b6af5ee047937bfbc8c059b14600ff42e4c SHA512 c947238eafe2acf10af6499da3d9f20f988a0f20bb8d896ae5443866a32840918931ba9fd4cffe8fd7958ea8fee6c30e59c972d6685a3a1150f03d7e7ef7f8ac WHIRLPOOL ca88c6913b349495bc70a9c61c07b233741a89e28e70b9cc045a204be3558277a3341a2e4ff24ee43535d1fc70e8762ecebce68073c653f5bdea0baef53186f1 +MISC ChangeLog 23693 SHA256 d6346c4e87f176278dddfee59b13ccccb963323cacedd24f3b2a3e333d685b66 SHA512 cae83421196c38944a3e01ec666b7977ab8f109e1f191d7e20b98c7ce360c44e89d87c5d8cc6a3e0f7bc2f0f1b667539e5e3f76d0fc5842b9b05184242df3540 WHIRLPOOL b766f808a7b132e757db0e41d52d61f21b5a087026612b842d6b654b376425194a4bc9a49a56b10b9fee5a0f862874da62d91bf907cc25bd78940d7c74e9903c MISC metadata.xml 2515 SHA256 0d1b116cad16c232a26efa5625f5bfc0ba3f07cd32094a3cef923ec2dfc1afd4 SHA512 9f23733a73575a7998abaae511dd6aed575a23ff2c9026599f85a7f0d00e5dd242bb3404078c4a9ae4d7a98e2ac9a88d055decf4f4a16c320937a15bdff9182c WHIRLPOOL c4c6ef51aa50e3b21a2b929d04a400b7ecccbf508ebc5bd24e006222aceabcf7b03bb7b1ef76fd6866953845fba5519b5e31c04aafe15c70196db1f7be56b953 diff --git a/media-video/vdr/files/vdr-1.7.42_gentoo.patch b/media-video/vdr/files/vdr-1.7.42_gentoo.patch new file mode 100644 index 0000000..df67334 --- /dev/null +++ b/media-video/vdr/files/vdr-1.7.42_gentoo.patch @@ -0,0 +1,67 @@ +disabled compile from included plugins, we dont support this way on gentoo +support for linguas handling +fixed install an multicore cpu + +changed path to install header files in own dir vdr, libsi +need fixing, need some adaption in vdr-plugin-2.eclass and depended plugins, later... + +Signed-of-by: Joerg Bornkessel (2013/02/18) + +diff -Naur vdr-1.7.38.orig/Makefile vdr-1.7.38/Makefile +--- vdr-1.7.38.orig/Makefile 2013-02-18 10:55:46.315939644 +0100 ++++ vdr-1.7.38/Makefile 2013-02-18 10:59:15.047315535 +0100 +@@ -109,7 +109,7 @@ + VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) + APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) + +-all: vdr i18n plugins ++all: vdr i18n + + # Implicit rules: + +@@ -162,7 +162,7 @@ + + PODIR = po + LOCALEDIR = locale +-I18Npo = $(wildcard $(PODIR)/*.po) ++I18Npo = $(foreach dir,$(LINGUAS),$(wildcard $(PODIR)/$(dir)*.po)) + I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) + I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr.mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) + I18Npot = $(PODIR)/vdr.pot +@@ -185,7 +185,7 @@ + + install-i18n: i18n + @mkdir -p $(DESTDIR)$(LOCDIR) +- cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR) ++ @(cd $(LOCALEDIR); for linguas in $(LINGUAS); do [ "$$linguas" = "en" ] && continue; cp -r --parents $$linguas* $(DESTDIR)$(LOCDIR); done) + + # The 'include' directory (for plugins): + +@@ -259,11 +259,12 @@ + + install-dirs: + @mkdir -p $(DESTDIR)$(VIDEODIR) +- @mkdir -p $(DESTDIR)$(CONFDIR) ++# @mkdir -p $(DESTDIR)$(CONFDIR) + @mkdir -p $(DESTDIR)$(CACHEDIR) + @mkdir -p $(DESTDIR)$(RESDIR) + + install-conf: ++ @mkdir -p $(DESTDIR)$(CONFDIR) + @cp -pn *.conf $(DESTDIR)$(CONFDIR) + + # Documentation: +@@ -289,8 +290,11 @@ + # Includes: + + install-includes: include-dir +- @mkdir -p $(DESTDIR)$(INCDIR) +- @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) ++# @mkdir -p $(DESTDIR)$(INCDIR) ++# @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) ++ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi ++ @cp -pLR include/vdr $(DESTDIR)$(INCDIR) ++ @cp -pLR include/libsi Make.config $(DESTDIR)$(INCDIR)/vdr + + # pkg-config file: + diff --git a/media-video/vdr/vdr-1.7.42.ebuild b/media-video/vdr/vdr-1.7.42.ebuild new file mode 100644 index 0000000..426d201 --- /dev/null +++ b/media-video/vdr/vdr-1.7.42.ebuild @@ -0,0 +1,401 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.6.0_p1.ebuild,v 1.6 2008/05/21 05:50:50 zzam Exp $ + +EAPI="5" + +inherit eutils flag-o-matic multilib toolchain-funcs + +# Switches supported by extensions-patch +EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft + jumpplay jumpingseconds + mainmenuhooks menuorg naludump permashift pinplugin + rotor setup ttxtsubs vasarajanauloja wareagleicon yaepg" + +# names of the use-flags +EXT_PATCH_FLAGS_RENAMED="" + +# names ext-patch uses internally, here only used for maintainer checks +EXT_PATCH_FLAGS_RENAMED_EXT_NAME="" + +IUSE="debug html vanilla dxr3 ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" + +MY_PV="${PV%_p*}" +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +EXT_P="extpng-${P}-gentoo-edition-v1" + +DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" +HOMEPAGE="http://www.tvdr.de/" +SRC_URI="ftp://ftp.tvdr.de/vdr/Developer/${MY_P}.tar.bz2 + http://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" + +KEYWORDS="~arm ~amd64 ~ppc ~x86" +SLOT="0" +LICENSE="GPL-2" + +REQUIRED_USE="setup? ( !menuorg ) + menuorg? ( !setup )" + +COMMON_DEPEND="virtual/jpeg + sys-libs/libcap + >=media-libs/fontconfig-2.4.2 + >=media-libs/freetype-2 + setup? ( >=dev-libs/tinyxml-2.6.1[stl] )" + +DEPEND="${COMMON_DEPEND} + >=virtual/linuxtv-dvb-headers-5.3 + sys-devel/gettext" + +RDEPEND="${COMMON_DEPEND} + dev-lang/perl + >=media-tv/gentoo-vdr-scripts-0.2.0_rc2 + media-fonts/corefonts" + +# pull in vdr-setup to get the xml files, else menu will not work +PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r3 )" + +CONF_DIR=/etc/vdr +CAP_FILE=${S}/capabilities.sh +CAPS="# Capabilities of the vdr-executable for use by startscript etc." + +pkg_setup() { + if [ -n "${VDR_LOCAL_PATCHES_DIR}" ]; then + eerror "Using VDR_LOCAL_PATCHES_DIR is obsolet!" + eerror "Please move all your patches into" + eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}" + eerror "and remove or unset the VDR_LOCAL_PATCHES_DIR variable." + die + fi + + use debug && append-flags -g + + PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" + + tc-export CC CXX +} + +add_cap() { + local arg + for arg; do + CAPS="${CAPS}\n${arg}=1" + done +} + +enable_patch() { + local arg ARG_UPPER + for arg; do + ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') + echo "${ARG_UPPER} = 1" >> Make.config + + # codesnipe to bring the extpng defines in the vdr.pc CXXFLAGS CFLAGS + echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp + cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE + export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) + done +} + +extensions_add_make_conf() +{ + # copy all ifdef for extensions-patch to Make.config + sed -e '1,/need to touch the following:/d' \ + -e '/need to touch the following/,/^$/d' \ + Make.config.template >> Make.config +} + +extensions_all_defines() { + # extract all possible settings for extensions-patch + sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ + Make.config.template \ + | sort \ + | tr '[:upper:]' '[:lower:]' +} + +lang_po() { + LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) +} + +src_prepare() { + #applying maintainace-patches + + ebegin "Changing pathes for gentoo" + + sed \ + -e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \ + -i vdr.c + + local DVBDIR=/usr/include + local i + for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do + [[ -d ${i} ]] || continue + if [[ -f ${i}/linux/dvb/dmx.h ]]; then + einfo "Found DVB header files in ${i}" + DVBDIR=${i} + break + fi + done + + # checking for s2api headers + local api_version + api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) + api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) + + if [[ ${api_version:-0} -lt 5*3 ]]; then + eerror "DVB header files do not contain s2api support or to old for ${P}" + eerror "You cannot compile VDR against old dvb-headers" + die "DVB headers too old" + fi + + cat > Make.config <<-EOT + # + # Generated by ebuild ${PF} + # + PREFIX = /usr + DVBDIR = ${DVBDIR} + PLUGINLIBDIR = ${PLUGIN_LIBDIR} + CONFDIR = ${CONF_DIR} + VIDEODIR = /var/vdr/video + LOCDIR = \$(PREFIX)/share/locale + INCDIR = \$(PREFIX)/include + + DEFINES += -DCONFDIR=\"\$(CONFDIR)\" + INCLUDES += -I\$(DVBDIR) + + # >=vdr-1.7.36-r1; param only used for compiletime on vdr + # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) + LIBDIR = ${PLUGIN_LIBDIR} + PCDIR = /usr/$(get_libdir)/pkgconfig + EOT + eend 0 + + epatch "${FILESDIR}/${P}_gentoo.patch" + + # Do not compile/install plugins from vdr source + sed -i Makefile \ + -e 's/ install-plugins//' + + if ! use vanilla; then + + # Now apply extensions patch + epatch "${WORKDIR}/${EXT_P}.patch" + + # This allows us to start even if some plugin does not exist + # or is not loadable. + enable_patch PLUGINMISSING + enable_patch CHANNELBIND + + if [[ -n ${VDR_MAINTAINER_MODE} ]]; then + einfo "Doing maintainer checks:" + + # these patches we do not support + # (or have them already hard enabled) + local IGNORE_PATCHES="pluginmissing channelbind" + + extensions_all_defines > "${T}"/new.IUSE + echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ + $IGNORE_PATCHES | \ + tr ' ' '\n' |sort > "${T}"/old.IUSE + local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') + if [[ -z ${DIFFS} ]]; then + einfo "EXT_PATCH_FLAGS is up to date." + else + ewarn "IUSE differences!" + local diff + for diff in $DIFFS; do + ewarn "$diff" + done + fi + fi + + ebegin "Enabling selected patches" + local flag + for flag in $EXT_PATCH_FLAGS; do + use $flag && enable_patch ${flag} + done + + eend 0 + + extensions_add_make_conf + + # add defined use-flags compile options to vdr.pc + sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ + -i Makefile + + ebegin "Make depend" + emake .dependencies >/dev/null + eend $? "make depend failed" + fi + + epatch_user + + if [[ -n "${VDRSOURCE_DIR}" ]]; then + cp -r "${S}" "${T}"/source-tree + fi + + add_cap CAP_UTF8 + + add_cap CAP_IRCTRL_RUNTIME_PARAM \ + CAP_VFAT_RUNTIME_PARAM \ + CAP_CHUID \ + CAP_SHUTDOWN_AUTO_RETRY + + echo -e ${CAPS} > "${CAP_FILE}" + + # LINGUAS support + einfo "\n \t VDR supports the LINGUAS values" + + lang_po + + einfo "\t Please set one of this values in your sytem make.conf" + einfo "\t LINGUAS=\"${LING_PO}\"\n" + + if [[ -z ${LINGUAS} ]]; then + einfo "\n \t No values in LINGUAS=" + einfo "\t you will get only english text on OSD \n" + fi + + strip-linguas ${LING_PO} en +} + +src_install() { + # trick makefile not to create a videodir by supplying it with an existing + # directory + einstall \ + VIDEODIR="/" \ + DESTDIR="${D}" \ + || die "emake install failed" + + keepdir "${CONF_DIR}"/plugins + keepdir "${CONF_DIR}"/themes + + keepdir "${PLUGIN_LIBDIR}" + + diropts -m0755 -ovdr -gvdr + keepdir /var/cache/vdr + + if use html; then + dohtml *.html + fi + + dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS + + insinto /usr/share/vdr + doins "${CAP_FILE}" + + if use alternatechannel; then + insinto /etc/vdr + doins "${FILESDIR}"/channel_alternative.conf + fi + + if use setup; then + insinto /usr/share/vdr/setup + doins "${S}"/menu.c + fi + chown -R vdr:vdr "${D}/${CONF_DIR}" +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-1.6.0_p2-r8" + previous_less_than_1_6_0_p2_r8=$? + + has_version "<${CATEGORY}/${PN}-1.7.27" + previous_less_than_1_7_27=$? + + has_version "<${CATEGORY}/${PN}-1.7.36" + previous_less_than_1_7_36=$? +} + +pkg_postinst() { + + # correct wrong permission from earlyer install + CACHEOWNER="$(stat -c %U /var/cache/vdr)" + if [ ! ${CACHEOWNER} == vdr ]; then + chown -R vdr:vdr "${ROOT}/var/cache/vdr" + fi + + elog "This is a *developer* version." + + if [[ previous_less_than_1_6_0_p2_r8=$? = 0 ]] ; then + elog " Upgrade Info:" + + elog " The recording format is now Transport Stream. Existing recordings in PES format" + elog " can still be replayed and edited, but new recordings are done in TS." + + elog " The support for full featured DVB cards of the TT/FuSi design has been moved" + elog " into the new plugins 'dvbsddevice' 'dvbhddevice'. On systems that use such a card as their" + elog " primary device, this plugin now needs to be loaded when running VDR in order" + elog " to view live or recorded video. If the plugin is not loaded, the card will" + elog " be treated like a budget DVB card, and there will be no OSD or viewing" + elog " capability." + + elog " The index file for TS recordings is now regenerated on-the-fly if a" + elog " recording is replayed that has no index. This can also be used to" + elog " re-create a broken index file by manually deleting the index file and then" + elog " replaying the recording." + + elog " The files \"commands.conf\" and \"reccmd.conf\" can now contain nested lists of" + elog " commands. See man vdr.5 for information about the new file format." + + elog " The option \"Setup/DVB/Use Dolby Digital\" now only controls whether Dolby Digital" + elog " tracks appear in the 'Audio' menu. Dolby Digital is always recorded" + + elog " The default SVDRP port is now 6419" + fi + + if [[ previous_less_than_1_7_27=$? = 0 ]] ; then + elog "In vdr releases >=vdr-1.7.27 the depricated i18n handling is removed" + elog "This results now in a lot of not working plugins on compile process" + elog "Please visit for more infos:" + elog "https://bugs.gentoo.org/show_bug.cgi?id=414177" + elog "and depended bugs" + fi + + if [[ previous_less_than_1_7_36=$? = 0 ]] ; then + elog "By default VDR is now built according to the FHS" + elog "Gentoo VDR still use the standard from" + elog "Filesystem Hirarchy Standard" + elog "It is supported thins beginning of VDR support" + elog "on Gentoo" + elog "Finaly, for the user are minimal changes now" + fi + + elog "It is a good idea to run vdrplugin-rebuild now." + + if use setup; then + if ! has_version media-plugins/vdr-setup || \ + ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then + + echo + ewarn "You have compiled media-video/vdr with USE=\"setup\"" + ewarn "It is very important to emerge media-plugins/vdr-setup now!" + ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins" + fi + fi + + local keysfound=0 + local key + local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow" + local remote_file="${ROOT}"/etc/vdr/remote.conf + + if [[ -e ${remote_file} ]]; then + for key in ${warn_keys}; do + if grep -q -i "\.${key} " "${remote_file}"; then + keysfound=1 + break + fi + done + if [[ ${keysfound} == 1 ]]; then + ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable" + ewarn "Please remove these keys or vdr will not start:" + ewarn "# ${warn_keys}" + fi + fi + + elog "To get nice symbols in OSD we recommend to install" + elog "\t1. emerge media-fonts/vdrsymbols-ttf" + elog "\t2. select font VDRSymbolsSans in Setup" + elog "" + elog "To get an idea how to proceed now, have a look at our vdr-guide:" + elog "\thttp://www.gentoo.org/doc/en/vdr-guide.xml" +} -- cgit v1.2.3-65-gdbad