Adding cfdg - context-free design grammar

svn path=/nixpkgs/trunk/; revision=20166

+53
+34
pkgs/tools/graphics/cfdg/default.nix
··· 1 + a @ {libpng, bison, flex, fullDepEntry, ...} : 2 + let 3 + s = import ./src-for-default.nix; 4 + buildInputs = with a; [ 5 + libpng bison flex 6 + ]; 7 + in 8 + rec { 9 + src = a.fetchUrlFromSrcInfo s; 10 + 11 + inherit (s) name; 12 + inherit buildInputs; 13 + configureFlags = []; 14 + 15 + /* doConfigure should be removed if not needed */ 16 + phaseNames = ["doMake" "copyFiles"]; 17 + 18 + copyFiles = a.fullDepEntry '' 19 + ensureDir $out/bin 20 + cp cfdg $out/bin/ 21 + 22 + ensureDir $out/share/doc/${name} 23 + cp *.txt $out/share/doc/${name} 24 + '' ["defEnsureDir" "doMake"]; 25 + 26 + meta = { 27 + description = "Context-free design grammar - a tool for graphics generation"; 28 + maintainers = [ 29 + a.lib.maintainers.raskin 30 + ]; 31 + platforms = with a.lib.platforms; 32 + linux; 33 + }; 34 + }
+9
pkgs/tools/graphics/cfdg/src-for-default.nix
··· 1 + rec { 2 + version="2.2.1"; 3 + name="cfdg-2.2.1"; 4 + hash="1zf3cls5h4fnhdxhdkdwsm4pav6df1ljr9jwp26dbqa4z2q3r8p4"; 5 + url="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz"; 6 + advertisedUrl="http://www.contextfreeart.org/download/ContextFreeSource2.2.1.tgz"; 7 + 8 + 9 + }
+6
pkgs/tools/graphics/cfdg/src-info-for-default.nix
··· 1 + { 2 + downloadPage = "http://contextfreeart.org/mediawiki/index.php/Download_page"; 3 + baseName = "cfdg"; 4 + sourceRegexp = ''.*[.]tgz''; 5 + versionExtractorSedScript = ''s/[^0-9]*([0-9.]*)[.]tgz/\1/''; 6 + }
+4
pkgs/top-level/all-packages.nix
··· 499 499 inherit fetchurl stdenv cmake libcap zlib bzip2; 500 500 }; 501 501 502 + cfdg = builderDefsPackage ../tools/graphics/cfdg { 503 + inherit libpng bison flex; 504 + }; 505 + 502 506 checkinstall = import ../tools/package-management/checkinstall { 503 507 inherit fetchurl stdenv gettext; 504 508 };