Merge pull request #33314 from jtojnar/gnome-mplayer
gnome_mplayer: 1.0.4 → 1.0.9
This commit is contained in:
commit
f2fd4a5219
@ -1,20 +1,33 @@
|
|||||||
{stdenv, fetchurl, pkgconfig, glib, gtk2, dbus, dbus_glib, GConf}:
|
{stdenv, substituteAll, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, gmtk, dbus, dbus_glib
|
||||||
|
, libnotify, libpulseaudio, mplayer, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnome-mplayer-1.0.4";
|
name = "gnome-mplayer-${version}";
|
||||||
|
version = "1.0.9";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gnome-mplayer/${name}.tar.gz";
|
owner = "kdekorte";
|
||||||
sha256 = "1k5yplsvddcm7xza5h4nfb6vibzjcqsk8gzis890alizk07f5xp2";
|
repo = "gnome-mplayer";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0qvy9fllvg1mad6y1j79iaqa6khs0q2cb0z62yfg4srbr07fi8xr";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig gettext wrapGAppsHook ];
|
||||||
buildInputs = [ glib gtk2 dbus dbus_glib GConf];
|
buildInputs = [ glib gtk3 gmtk dbus dbus_glib libnotify libpulseaudio ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
mencoder = "${mplayer}/bin/mencoder";
|
||||||
|
mplayer = "${mplayer}/bin/mplayer";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://kdekorte.googlepages.com/gnomemplayer;
|
|
||||||
description = "Gnome MPlayer, a simple GUI for MPlayer";
|
description = "Gnome MPlayer, a simple GUI for MPlayer";
|
||||||
|
homepage = https://sites.google.com/site/kdekorte2/gnomemplayer;
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
87
pkgs/applications/video/gnome-mplayer/fix-paths.patch
Normal file
87
pkgs/applications/video/gnome-mplayer/fix-paths.patch
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
--- a/src/gui.c
|
||||||
|
+++ b/src/gui.c
|
||||||
|
@@ -7470,7 +7470,7 @@
|
||||||
|
filename = g_strdup_printf("%s/00000001.jpg", dirname);
|
||||||
|
g_free(basepath);
|
||||||
|
// run mplayer and try to get the first frame and convert it to a jpeg
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
av[ac++] = g_strdup_printf("-vo");
|
||||||
|
av[ac++] = g_strdup_printf("jpeg:outdir=%s", dirname);
|
||||||
|
av[ac++] = g_strdup_printf("-ao");
|
||||||
|
--- a/src/property_page_common.c
|
||||||
|
+++ b/src/property_page_common.c
|
||||||
|
@@ -80,7 +80,7 @@
|
||||||
|
MetaData *ret;
|
||||||
|
ret = g_new0(MetaData, 1);
|
||||||
|
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
av[ac++] = g_strdup_printf("-vo");
|
||||||
|
av[ac++] = g_strdup_printf("null");
|
||||||
|
av[ac++] = g_strdup_printf("-ao");
|
||||||
|
--- a/src/support.c
|
||||||
|
+++ b/src/support.c
|
||||||
|
@@ -566,7 +566,7 @@
|
||||||
|
} else {
|
||||||
|
playlist = FALSE;
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
||||||
|
@@ -728,7 +728,7 @@
|
||||||
|
playlist = FALSE;
|
||||||
|
// run mplayer and try to get the first frame and convert it to a jpeg
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
||||||
|
@@ -825,7 +825,7 @@
|
||||||
|
playlist = FALSE;
|
||||||
|
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
||||||
|
@@ -1251,7 +1251,7 @@
|
||||||
|
gm_log(verbose, G_LOG_LEVEL_INFO, "getting file metadata for %s", name);
|
||||||
|
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
||||||
|
@@ -1532,7 +1532,7 @@
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
||||||
|
@@ -1597,7 +1597,7 @@
|
||||||
|
|
||||||
|
if (control_id == 0) {
|
||||||
|
ac = 0;
|
||||||
|
- av[ac++] = g_strdup_printf("mencoder");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mencoder@");
|
||||||
|
av[ac++] = g_strdup_printf("-ovc");
|
||||||
|
av[ac++] = g_strdup_printf("copy");
|
||||||
|
av[ac++] = g_strdup_printf("-oac");
|
||||||
|
@@ -2830,7 +2830,7 @@
|
||||||
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
|
if (mplayer_bin == NULL || !g_file_test(mplayer_bin, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", mplayer_bin);
|
||||||
|
}
|
32
pkgs/development/libraries/gmtk/default.nix
Normal file
32
pkgs/development/libraries/gmtk/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{stdenv, substituteAll, fetchFromGitHub, libtool, pkgconfig, intltool, glib, gtk3
|
||||||
|
, libpulseaudio, mplayer, gnome_mplayer }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "gmtk-${version}";
|
||||||
|
version = "1.0.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kdekorte";
|
||||||
|
repo = "gmtk";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1zb5m1y1gckal3140gvx31572a6xpccwfmdwa1w5lx2wdq1pwk1i";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ libtool pkgconfig intltool ];
|
||||||
|
buildInputs = [ glib gtk3 libpulseaudio ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
mplayer = "${mplayer}/bin/mplayer";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Common functions for gnome-mplayer and gecko-mediaplayer";
|
||||||
|
homepage = https://sites.google.com/site/kdekorte2/gnomemplayer;
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = gnome_mplayer.meta.maintainers;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
20
pkgs/development/libraries/gmtk/fix-paths.patch
Normal file
20
pkgs/development/libraries/gmtk/fix-paths.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- a/src/gmtk_media_player.c
|
||||||
|
+++ b/src/gmtk_media_player.c
|
||||||
|
@@ -2449,7 +2449,7 @@
|
||||||
|
player->minimum_mplayer = detect_mplayer_features(player);
|
||||||
|
|
||||||
|
if (player->mplayer_binary == NULL || !g_file_test(player->mplayer_binary, G_FILE_TEST_EXISTS)) {
|
||||||
|
- argv[argn++] = g_strdup_printf("mplayer");
|
||||||
|
+ argv[argn++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
argv[argn++] = g_strdup_printf("%s", player->mplayer_binary);
|
||||||
|
}
|
||||||
|
@@ -4135,7 +4135,7 @@
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
if (player->mplayer_binary == NULL || !g_file_test(player->mplayer_binary, G_FILE_TEST_EXISTS)) {
|
||||||
|
- av[ac++] = g_strdup_printf("mplayer");
|
||||||
|
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||||
|
} else {
|
||||||
|
av[ac++] = g_strdup_printf("%s", player->mplayer_binary);
|
||||||
|
}
|
@ -15248,11 +15248,11 @@ with pkgs;
|
|||||||
inherit (darwin) IOKit;
|
inherit (darwin) IOKit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gmtk = callPackage ../development/libraries/gmtk { };
|
||||||
|
|
||||||
gmu = callPackage ../applications/audio/gmu { };
|
gmu = callPackage ../applications/audio/gmu { };
|
||||||
|
|
||||||
gnome_mplayer = callPackage ../applications/video/gnome-mplayer {
|
gnome_mplayer = callPackage ../applications/video/gnome-mplayer { };
|
||||||
inherit (gnome2) GConf;
|
|
||||||
};
|
|
||||||
|
|
||||||
gnumeric = callPackage ../applications/office/gnumeric { };
|
gnumeric = callPackage ../applications/office/gnumeric { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user