3
0
Fork 0
forked from mirrors/nixpkgs

D-Bus splitted into two packages: dbus.libs and dbus.tools

svn path=/nixpkgs/branches/stdenv-updates/; revision=10461
This commit is contained in:
Yury G. Kudryashov 2008-02-02 20:41:06 +00:00
parent 2ac45781aa
commit aa4d93482d
10 changed files with 46 additions and 47 deletions

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
python curl coreutils dbus dbus_glib pango freetype fontconfig
python curl coreutils dbus.libs dbus_glib pango freetype fontconfig
libX11 libXrender libXft libXt
];

View file

@ -4,6 +4,6 @@ build-essential libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamag
args: with args;
[
libpng
GConf mesa metacity librsvg dbus dbus_glib gnomedesktop git autoconf automake
GConf mesa metacity librsvg dbus.libs dbus_glib gnomedesktop git autoconf automake
libtool libxslt libwnck intltool perl perlXMLParser compiz
]

View file

@ -14,7 +14,7 @@ args : with args;
propagatedBuildInputs = [
libpng libXcomposite libXfixes libXdamage libXrandr libXinerama
libICE libSM startupnotification mesa GConf perl perlXMLParser libxslt
dbus dbus_glib compositeproto fixesproto damageproto randrproto
dbus.libs dbus_glib compositeproto fixesproto damageproto randrproto
xineramaproto renderproto kbproto xextproto libXrender
];
configureFlags = ["--enable-gtk" "--enable-fuse"

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "7fc7faafccfdf22dea7ac1de6629dcb55ec63d84fcb57a14559309cf284fa94f";
};
buildInputs = [
pkgconfig compiz perl perlXMLParser GConf dbus gtk
pkgconfig compiz perl perlXMLParser GConf dbus.libs gtk
];
preBuild = "
makeFlagsArray=(moduledir=$out/lib/compiz)

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
};
inherit dbus glib;
buildInputs = [pkgconfig gettext glib expat];
propagatedBuildInputs = [dbus];
propagatedBuildInputs = [dbus.libs];
meta = {
homepage = http://dbus.freedesktop.org;

View file

@ -1,22 +1,38 @@
{stdenv, fetchurl, pkgconfig, expat}:
stdenv.mkDerivation {
name = "dbus-1.0.2";
args: with args;
let
version = "1.0.2";
src = fetchurl {
url = http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz;
url = "http://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.gz";
sha256 = "1jn652zb81mczsx4rdcwrrzj3lfhx9d107zjfnasc4l5yljl204a";
};
buildInputs = [pkgconfig expat];
configureFlags = "--without-x --localstatedir=/var";
configureFlags = "--disable-static --localstatedir=/var --with-session-socket-dir=/tmp";
in rec {
libs = stdenv.mkDerivation {
name = "dbus-library-" + version;
buildInputs = [pkgconfig expat];
inherit src configureFlags;
patchPhase = ''
sed -i /mkinstalldirs.*localstatedir/d bus/Makefile.in
sed -i '/SUBDIRS/s/ tools//' Makefile.in
'';
};
# Awful hack: `make install' wants to write in /var, but it
# can't. So redirect it with a DESTDIR.
preInstall = "
installFlagsArray=(DESTDIR=$out/destdir)
";
tools = stdenv.mkDerivation {
name = "dbus-tools-" + version;
inherit src configureFlags;
buildInputs = [pkgconfig expat libs]
++ if useX11 then [libX11 libICE libSM] else [];
postConfigure = "cd tools";
postInstall = "
mv $out/destdir/$out/* $out
rm -rf $out/destdir
";
NIX_LDFLAGS = "-ldbus-1";
makeFlags = "DBUS_DAEMONDIR=${daemon}/bin";
patchPhase = ''
sed -i 's@ $(top_builddir)/dbus/libdbus-1.la@@' tools/Makefile.in
sed -i '/mkdir.*localstate/d' tools/Makefile.in
'';
};
# I'm too lazy to separate daemon and libs now.
daemon = libs;
}

View file

@ -1,7 +1,4 @@
{ stdenv, fetchurl
, pkgconfig, dbus, dbus_glib
, gtk, glib
}:
args: with args;
stdenv.mkDerivation {
name = "libnotify-0.4.4";
@ -13,7 +10,7 @@ stdenv.mkDerivation {
};
buildInputs = [
pkgconfig dbus dbus_glib gtk glib
pkgconfig dbus.libs dbus_glib gtk glib
];
configureFlags="";

View file

@ -4,7 +4,7 @@ rec {
setupHook = ./setup-hook.sh;
propagatedBuildInputs = [libXft libXrender libXrandr randrproto xextproto
libXinerama xineramaproto libXcursor zlib libjpeg mysql libpng which mesa
libXmu openssl dbus cups pkgconfig libXext freetype fontconfig inputproto
libXmu openssl dbus.libs cups pkgconfig libXext freetype fontconfig inputproto
fixesproto libXfixes glib libtiff];
prefixKey = "-prefix ";
configureFlags = "

View file

@ -1,8 +1,4 @@
{ stdenv, fetchurl, pkgconfig, python, pciutils, usbutils, expat
, libusb, dbus, dbus_glib, glib, libvolume_id, perl, perlXMLParser
, gettext, zlib /* required by pciutils */, eject, libsmbios
, udev
}:
args: with args;
stdenv.mkDerivation {
name = "hal-0.5.9";
@ -13,7 +9,7 @@ stdenv.mkDerivation {
};
buildInputs = [
pkgconfig python pciutils expat libusb dbus dbus_glib glib
pkgconfig python pciutils expat libusb dbus.libs dbus_glib glib
libvolume_id perl perlXMLParser gettext zlib libsmbios
];

View file

@ -1825,20 +1825,11 @@ rec {
inherit fetchurl stdenv;
};
# I think, this is a bad practice to use getVersion for various build
# variants, but it's 5 o'clock now...
dbus = getVersion "dbus" dbus_alts;
dbus_alts = rec
{
noX11 = import ../development/libraries/dbus {
dbus = import ../development/libraries/dbus {
inherit fetchurl stdenv pkgconfig expat;
};
withX11 = import ../development/libraries/dbus_x {
inherit fetchurl stdenv pkgconfig expat;
inherit (xlibs) libX11 libICE libSM;
};
default = noX11;
useX11 = getConfig [ "dbus" "tools" "useX11" ]
(getConfig [ "services" "xserver" "enable" ] false);
};
dbus_glib = import ../development/libraries/dbus-glib {
@ -4955,7 +4946,7 @@ rec {
xineLib libgphoto2 djvulibre libogg lame libvorbis poppler readline
saneBackends chmlib python libzip gmp sqlite libidn runCommand lib
openbabel ocaml facile stdenv jasper fam indilib libnova
libarchive;
libarchive dbus;
flac = builtins.getAttr "1.1.2" flacAlts;
cdparanoia = cdparanoiaIII;
inherit (xlibs)
@ -4966,7 +4957,6 @@ rec {
libxkbfile libXinerama libpthreadstubs libXxf86vm xset xprop;
inherit (gtkLibs) glib;
qt = qt4;
dbus = dbus_alts.withX11;
bison = bison23;
openexr = openexr_1_6_1 ;
});