mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
vrb: init at 0.5.1
This commit is contained in:
parent
d854b3df2c
commit
380bb673d4
34
pkgs/development/libraries/vrb/default.nix
Normal file
34
pkgs/development/libraries/vrb/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vrb-${version}";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://vrb.sourceforge.net/download/${name}.tar.bz2";
|
||||
sha256 = "d579ed1998ef2d78e2ef8481a748d26e1fa12cdda806d2e31d8ec66ffb0e289f";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./removed_options.patch
|
||||
./unused-but-set-variable.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/man/man3
|
||||
cp -p vrb/man/man3/*.3 $out/share/man/man3/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A virtual ring buffer library written in C";
|
||||
license = licenses.lgpl21;
|
||||
homepage = http://vrb.sourceforge.net/;
|
||||
maintainers = [ maintainers.bobvanderlinden ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
13
pkgs/development/libraries/vrb/removed_options.patch
Normal file
13
pkgs/development/libraries/vrb/removed_options.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- a/configure 2010-10-05 16:32:59.000000000 +0200
|
||||
+++ b/configure 2010-10-05 16:33:08.000000000 +0200
|
||||
@@ -341,8 +341,8 @@
|
||||
pgm_warn=( "${pgm_warn[@]}" -Winline )
|
||||
fi
|
||||
|
||||
-lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
|
||||
-pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
|
||||
+lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
|
||||
+pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
|
||||
|
||||
lib_cp_opt=( -pipe )
|
||||
pgm_cp_opt=( -pipe )
|
19
pkgs/development/libraries/vrb/unused-but-set-variable.patch
Normal file
19
pkgs/development/libraries/vrb/unused-but-set-variable.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/vrb/src/bin/vbuf.c1 2011-06-13 22:14:24.000000000 +0200
|
||||
+++ b/vrb/src/bin/vbuf.c 2011-06-13 22:14:43.000000000 +0200
|
||||
@@ -426,7 +426,6 @@
|
||||
int opt_progress ;
|
||||
int output_fd ;
|
||||
int poll_time ;
|
||||
- int poll_num ;
|
||||
int poll_write ;
|
||||
int poll_read ;
|
||||
|
||||
@@ -861,7 +860,7 @@
|
||||
poll_time = display_time - get_time_ms();
|
||||
if ( poll_time < 0 ) poll_time = 0;
|
||||
}
|
||||
- poll_num = poll( poll_list, 2, poll_time );
|
||||
+ poll( poll_list, 2, poll_time );
|
||||
|
||||
//-----------------------
|
||||
// Check for poll events.
|
|
@ -10898,6 +10898,8 @@ with pkgs;
|
|||
|
||||
vmime = callPackage ../development/libraries/vmime { };
|
||||
|
||||
vrb = callPackage ../development/libraries/vrb { };
|
||||
|
||||
vrpn = callPackage ../development/libraries/vrpn { };
|
||||
|
||||
vsqlite = callPackage ../development/libraries/vsqlite { };
|
||||
|
|
Loading…
Reference in a new issue