add eject, but remove the po subdir
svn path=/nixpkgs/trunk/; revision=3766
This commit is contained in:
parent
6ef2284079
commit
1c9be16b51
5
pkgs/os-specific/linux/eject/builder.sh
Normal file
5
pkgs/os-specific/linux/eject/builder.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
export destdir=$out
|
||||||
|
|
||||||
|
genericBuild
|
13
pkgs/os-specific/linux/eject/default.nix
Normal file
13
pkgs/os-specific/linux/eject/default.nix
Normal 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];
|
||||||
|
}
|
22
pkgs/os-specific/linux/eject/eject-destdir.patch
Normal file
22
pkgs/os-specific/linux/eject/eject-destdir.patch
Normal 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
|
@ -168,6 +168,10 @@ rec {
|
|||||||
inherit fetchurl stdenv zlib;
|
inherit fetchurl stdenv zlib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
curiDiet = (import ../tools/networking/curl-diet) {
|
||||||
|
inherit fetchurl stdenv zlib dietgcc;
|
||||||
|
};
|
||||||
|
|
||||||
par2cmdline = (import ../tools/networking/par2cmdline) {
|
par2cmdline = (import ../tools/networking/par2cmdline) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
@ -1125,6 +1129,10 @@ rec {
|
|||||||
gcc = stdenv.gcc;
|
gcc = stdenv.gcc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
eject = (import ../os-specific/linux/eject) {
|
||||||
|
inherit fetchurl stdenv gettext;
|
||||||
|
};
|
||||||
|
|
||||||
hwdata = (import ../os-specific/linux/hwdata) {
|
hwdata = (import ../os-specific/linux/hwdata) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user