Adding cfdg - context-free design grammar

svn path=/nixpkgs/trunk/; revision=20166
This commit is contained in:
Michael Raskin 2010-02-22 10:46:49 +00:00
parent 454fb58a39
commit 4b22e9d61d
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,34 @@
a @ {libpng, bison, flex, fullDepEntry, ...} :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
libpng bison flex
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doMake" "copyFiles"];
copyFiles = a.fullDepEntry ''
ensureDir $out/bin
cp cfdg $out/bin/
ensureDir $out/share/doc/${name}
cp *.txt $out/share/doc/${name}
'' ["defEnsureDir" "doMake"];
meta = {
description = "Context-free design grammar - a tool for graphics generation";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
};
}

View File

@ -0,0 +1,9 @@
rec {
version="2.2.1";
name="cfdg-2.2.1";
hash="1zf3cls5h4fnhdxhdkdwsm4pav6df1ljr9jwp26dbqa4z2q3r8p4";
url="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz";
advertisedUrl="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz";
}

View File

@ -0,0 +1,6 @@
{
downloadPage = "http://contextfreeart.org/mediawiki/index.php/Download_page";
baseName = "cfdg";
sourceRegexp = ''.*[.]tgz'';
versionExtractorSedScript = ''s/[^0-9]*([0-9.]*)[.]tgz/\1/'';
}

View File

@ -499,6 +499,10 @@ let
inherit fetchurl stdenv cmake libcap zlib bzip2;
};
cfdg = builderDefsPackage ../tools/graphics/cfdg {
inherit libpng bison flex;
};
checkinstall = import ../tools/package-management/checkinstall {
inherit fetchurl stdenv gettext;
};