swig: use pname and standardize meta (#62158)

swig: use pname and standardize meta
This commit is contained in:
Jörg Thalheim 2019-05-29 09:28:55 +01:00 committed by GitHub
commit 9cce7eab8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 44 deletions

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }: { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "swig-${version}"; pname = "swig";
version = "2.0.12"; version = "2.0.12";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -16,8 +16,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "--without-tcl" ]; configureFlags = [ "--without-tcl" ];
# Disable ccache documentation as it needs yodl
postPatch = '' postPatch = ''
# Disable ccache documentation as it need yodl
sed -i '/man1/d' CCache/Makefile.in sed -i '/man1/d' CCache/Makefile.in
''; '';
@ -25,26 +25,11 @@ stdenv.mkDerivation rec {
./autogen.sh ./autogen.sh
''; '';
meta = { meta = with stdenv.lib; {
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages"; description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
longDescription = ''
SWIG is an interface compiler that connects programs written in C and
C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It
works by taking the declarations found in C/C++ header files and using
them to generate the wrapper code that scripting languages need to
access the underlying C/C++ code. In addition, SWIG provides a variety
of customization features that let you tailor the wrapping process to
suit your application.
'';
homepage = http://swig.org/; homepage = http://swig.org/;
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
# Licensing is a mess: http://www.swig.org/Release/LICENSE . license = licenses.gpl3Plus;
license = "BSD-style"; platforms = with platforms; linux ++ darwin;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ ];
}; };
} }

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre, buildPackages }: { stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre, buildPackages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "swig-${version}"; pname = "swig";
version = "3.0.12"; version = "3.0.12";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "--without-tcl" ]; configureFlags = [ "--without-tcl" ];
# Disable ccache documentation as it needs yodl
postPatch = '' postPatch = ''
# Disable ccache documentation as it need yodl
sed -i '/man1/d' CCache/Makefile.in sed -i '/man1/d' CCache/Makefile.in
''; '';

View File

@ -1,10 +1,11 @@
{ stdenv, fetchurl, boost, tcl }: { stdenv, fetchurl, boost, tcl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "swig-1.3.40"; pname = "swig";
version = "1.3.40";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/swig/${name}.tar.gz"; url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r"; sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
}; };
@ -14,26 +15,12 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-ccache" ]; configureFlags = [ "--disable-ccache" ];
meta = {
description = "Interface compiler that connects C/C++ code to higher-level languages";
longDescription = ''
SWIG is an interface compiler that connects programs written in C and
C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It
works by taking the declarations found in C/C++ header files and using
them to generate the wrapper code that scripting languages need to
access the underlying C/C++ code. In addition, SWIG provides a variety
of customization features that let you tailor the wrapping process to
suit your application.
'';
meta = with stdenv.lib; {
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
homepage = http://swig.org/; homepage = http://swig.org/;
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
# Licensing is a mess: http://www.swig.org/Release/LICENSE . license = licenses.gpl3Plus;
license = "BSD-style"; platforms = with platforms; linux ++ darwin;
platforms = stdenv.lib.platforms.all;
maintainers = [ ];
}; };
} }