From 96c462105627569ae4b82cdc0e0059806f855ba6 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 28 Aug 2015 22:22:22 +0200 Subject: gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases. * gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools, plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'. * gnu/packages/check.scm (catch-framework): Likewise. * gnu/packages/code.scm (global): Likewise. * gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools): Likewise. * gnu/packages/engineering.scm (fastcap, fasthenry): Likewise. * gnu/packages/gnuzilla.scm (nss): Likewise. * gnu/packages/guile.scm (guile-minikanren): Likewise. * gnu/packages/java.scm (swt): Likewise. * gnu/packages/make-bootstrap.scm (%static-binaries): Likewise. * gnu/packages/maths.scm (lpsolve): Likewise. * gnu/packages/mp3.scm (mpc123): Likewise. * gnu/packages/ninja.scm (ninja): Likewise. * gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise. * gnu/packages/screen.scm (dtach): Likewise. * gnu/packages/synergy.scm (synergy): Likewise. * gnu/packages/textutils.scm (utf8proc): Likewise. * gnu/packages/version-control.scm (git-test-sequence): Likewise. * gnu/packages/wicd.scm (wicd): Likewise. --- gnu/packages/python.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 940efeca64..b588dd649a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2784,7 +2784,7 @@ association studies (GWAS) on extremely large data sets.") (tgt-dir (string-append html "/" dir))) (unless (equal? "." dir) (mkdir-p tgt-dir)) - (copy-file file (string-append html "/" file)))) + (install-file file html))) (find-files "." ".*")))))) ,phases))))))) @@ -2828,7 +2828,7 @@ association studies (GWAS) on extremely large data sets.") (for-each (lambda (dir tgt) (map (lambda (file) - (copy-file file (string-append tgt "/" (basename file)))) + (install-file file tgt)) (find-files dir ".*"))) (list "docs" "htmldoc" "examples") (list doc html-doc examples)))) @@ -3140,9 +3140,7 @@ atlas_libs = openblas (for-each (lambda (file) (let* ((dir (dirname file)) (tgt-dir (string-append html "/" dir))) - (unless (equal? "." dir) - (mkdir-p tgt-dir)) - (copy-file file (string-append html "/" file)))) + (install-file file html))) (find-files "." ".*")))))) ;; Tests can only be run after the library has been installed and not ;; within the source directory. -- cgit v1.3 From d582eaacec4bd55e9edfd21ad69cd232a157cb31 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Sat, 22 Aug 2015 11:32:30 +0800 Subject: gnu: Add python-fonttools. * gnu/packages/python.scm (python-fonttools, python2-fonttools): New variables. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b588dd649a..aed8165eee 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4627,3 +4627,34 @@ term.js Javascript terminal emulator library.") ,python2-backport-ssl-match-hostname) ,@(alist-delete "python-tornado" (package-propagated-inputs terminado))))))) + +(define-public python-fonttools + (package + (name "python-fonttools") + (version "2.5") + (source (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/F/FontTools/" + "fonttools-" version ".tar.gz")) + (sha256 + (base32 + "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb")))) + (build-system python-build-system) + (arguments '(#:test-target "check")) + (propagated-inputs + ;; XXX: module not found if setuptools is not available. + `(("python-setuptools" ,python-setuptools))) + (home-page "http://github.com/behdad/fonttools") + (synopsis "Tools to manipulate font files") + (description + "FontTools/TTX is a library to manipulate font files from Python. It +supports reading and writinfg of TrueType/OpenType fonts, reading and writing +of AFM files, reading (and partially writing) of PS Type 1 fonts. The package +also contains a tool called “TTX” which converts TrueType/OpenType fonts to and +from an XML-based format.") + (license (non-copyleft "file://LICENSE.txt" + "See LICENSE.txt in the distribution.")))) + +(define-public python2-fonttools + (package-with-python2 python-fonttools)) -- cgit v1.3 From 62a9a23bf9743a1078c4fd860edc3bbdbebde034 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Sat, 12 Sep 2015 17:01:05 +0800 Subject: gnu: python-setuptools: Update to 18.3.1. * gnu/packages/python.scm (python-setuptools): Update to 18.3.1. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index aed8165eee..be638909a2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -671,7 +671,7 @@ have been used.") (define-public python-setuptools (package (name "python-setuptools") - (version "12.1") + (version "18.3.1") (source (origin (method url-fetch) @@ -679,7 +679,7 @@ have been used.") version ".tar.gz")) (sha256 (base32 - "04bfk7si1pwj3b5k2b1x9b1zkiclybmzpw6alrs5bciri56lg9zs")))) + "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig")))) (build-system python-build-system) ;; FIXME: Tests require pytest, which itself relies on setuptools. ;; One could bootstrap with an internal untested setuptools. -- cgit v1.3