add eject, but remove the po subdir

svn path=/nixpkgs/trunk/; revision=3766
This commit is contained in:
Armijn Hemel 2005-09-01 16:38:31 +00:00
parent 6ef2284079
commit 1c9be16b51
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,5 @@
source $stdenv/setup
export destdir=$out
genericBuild

View File

@ -0,0 +1,13 @@
{stdenv, fetchurl, gettext}:
stdenv.mkDerivation {
name = "eject-2.1.0";
builder = ./builder.sh;
src = fetchurl {
url = http://www.ibiblio.org/pub/Linux/utils/disk-management/eject-2.1.0.tar.gz;
md5 = "82e3a7a4d7e3323018c6938015ff25f7";
};
buildInputs = [gettext];
NIX_DEBUG=1;
patches = [./eject-destdir.patch];
}

View File

@ -0,0 +1,22 @@
diff -ruN eject-2.1.0/Makefile.in eject-2.1.0.new/Makefile.in
--- eject-2.1.0/Makefile.in 2002-12-09 23:38:08.000000000 +0100
+++ eject-2.1.0.new/Makefile.in 2005-09-01 18:36:41.000000000 +0200
@@ -67,7 +67,7 @@
eject_SOURCES = eject.c
volname_SOURCES = volname.c
-SUBDIRS = po
+#SUBDIRS = po
AM_CPPFLAGS = -I/usr/src/linux -I/usr/src/linux/include -DDEFAULTDEVICE=\"$(DEFAULTDEVICE)\" -DGETOPTLONG
AM_CFLAGS = -Wall -O3 $(RPM_OPT_FLAGS)
diff -ruN eject-2.1.0/po/Makefile eject-2.1.0.new/po/Makefile
--- eject-2.1.0/po/Makefile 2005-05-01 20:41:17.000000000 +0200
+++ eject-2.1.0.new/po/Makefile 2005-09-01 18:27:43.000000000 +0200
@@ -1,5 +1,5 @@
PKGNAME=eject
-PREFIX=$(DESTDIR)/usr
+PREFIX=$(prefix)/usr
INSTALL = install
MODIR = $(PREFIX)/share/locale
POTFILES = ../*.c ../*.h

View File

@ -168,6 +168,10 @@ rec {
inherit fetchurl stdenv zlib;
};
curiDiet = (import ../tools/networking/curl-diet) {
inherit fetchurl stdenv zlib dietgcc;
};
par2cmdline = (import ../tools/networking/par2cmdline) {
inherit fetchurl stdenv;
};
@ -1125,6 +1129,10 @@ rec {
gcc = stdenv.gcc;
};
eject = (import ../os-specific/linux/eject) {
inherit fetchurl stdenv gettext;
};
hwdata = (import ../os-specific/linux/hwdata) {
inherit fetchurl stdenv;
};