aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/gnustep.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-02-03 21:25:40 +0100
committerMarius Bakke <marius@gnu.org>2022-02-03 23:39:47 +0100
commit9396fef40998ba6b580b2d6c5c7b774b7a6ccd1e (patch)
treeda59ec5201cabf578c9b1312dfefeb79ad6f2f5a /gnu/packages/gnustep.scm
parent16701a3c1dfefabe12770b064be293425964117f (diff)
downloadguix-9396fef40998ba6b580b2d6c5c7b774b7a6ccd1e.tar.gz
guix-9396fef40998ba6b580b2d6c5c7b774b7a6ccd1e.zip
gnu: Add perl-date-range.
* gnu/packages/perl.scm (perl-date-range): New variable.
Diffstat (limited to 'gnu/packages/gnustep.scm')
0 files changed, 0 insertions, 0 deletions
onfigure' scripts like it." ;; See <http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/cross-compiling.html> ;; for details. (package (inherit %pkg-config) (name (string-append (package-name %pkg-config) "-" target)) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let* ((in (assoc-ref %build-inputs "pkg-config")) (out (assoc-ref %outputs "out")) (bin (string-append out "/bin")) (prog (string-append ,target "-pkg-config")) (native (string-append in "/bin/pkg-config"))) (mkdir-p bin) ;; Create a `TARGET-pkg-config' -> `pkg-config' symlink. ;; This satisfies the pkg.m4 macros, which use ;; AC_PROG_TOOL to determine the `pkg-config' program ;; name. (symlink native (string-append bin "/" prog)) ;; Also make 'pkg.m4' available, some packages might ;; expect it. (mkdir-p (string-append out "/share")) (symlink (string-append in "/share/aclocal") (string-append out "/share/aclocal")) #t)))) (native-inputs `(("pkg-config" ,%pkg-config))) ;; Ignore native inputs, and set `PKG_CONFIG_PATH' for target inputs. (native-search-paths '()) (search-paths (package-native-search-paths %pkg-config))))) (define (pkg-config-for-target target) "Return a pkg-config package for TARGET, which may be either #f for a native build, or a GNU triplet." (if target (cross-pkg-config target) %pkg-config)) ;; This hack allows us to automatically choose the native or the cross ;; `pkg-config' depending on whether it's being used in a cross-build ;; environment or not. (define-syntax pkg-config (identifier-syntax (pkg-config-for-target (%current-target-system)))) ;; This hack allows for using both "pkg-config" and "TARGET-pkg-config" ;; at the same time. Simply using '%pkg-config' and 'pkg-config' won't ;; work because they both use the "PKG_CONFIG_PATH" environment variable. (define-public pkg-config-for-build (package (inherit (hidden-package %pkg-config)) (name "pkg-config-for-build") (version "0") (source #f) (build-system trivial-build-system) (inputs (list bash-minimal %pkg-config)) (arguments `(#:modules ((guix build utils)) #:builder ,#~(begin (use-modules (guix build utils)) (define where (string-append #$output "/bin/pkg-config")) (mkdir-p (dirname where)) (call-with-output-file where (lambda (port) (format port "#!~a export PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH_FOR_BUILD\" exec ~a \"$@\"" (search-input-file %build-inputs "bin/bash") (search-input-file %build-inputs "bin/pkg-config")))) (chmod where #o500)))) (native-search-paths (map (lambda (original) (search-path-specification (inherit original) (variable "PKG_CONFIG_PATH_FOR_BUILD"))) (package-native-search-paths %pkg-config))))) (define-public pkgconf (package (name "pkgconf") (version "2.3.0") (source (origin (method url-fetch) (uri (string-append "https://distfiles.dereferenced.org/" name "/" name "-" version ".tar.xz")) (sha256 (base32 "12zaw363yk90i9ib04sz5f4j917hilm0l2liq7kiadnha6n8141s")))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'set-HOME (lambda _ ;; Kyua requires a writable HOME. (setenv "HOME" "/tmp")))))) (native-inputs (list atf kyua)) (native-search-paths (list $PKG_CONFIG_PATH)) (home-page "http://pkgconf.org/") (synopsis "Package compiler and linker metadata toolkit") (description "@command{pkgconf} is a program which helps to configure compiler and linker flags for development libraries. It is similar to pkg-config from freedesktop.org. @code{libpkgconf} is a library which provides access to most of pkgconf's functionality, to allow other tooling such as compilers and IDEs to discover and use libraries configured by pkgconf.") (license isc)))