libravatar.scm 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. (define-module (staging libravatar)
  2. #:use-module ((guix licenses) #:prefix license:)
  3. #:use-module (guix packages)
  4. #:use-module (guix download)
  5. #:use-module (guix git-download)
  6. #:use-module (gnu packages base)
  7. #:use-module (gnu packages crypto)
  8. #:use-module (gnu packages freedesktop)
  9. #:use-module (gnu packages imagemagick)
  10. #:use-module (gnu packages pkg-config)
  11. #:use-module (guix build-system gnu)
  12. #:use-module (guix build-system cmake)
  13. )
  14. ;; (define-public bmake
  15. ;; (package
  16. ;; (name "bmake")
  17. ;; (version "20200524")
  18. ;; (source (origin
  19. ;; (method url-fetch)
  20. ;; (uri (string-append "http://www.crufty.net/ftp/pub/sjg/bmake-" version ".tar.gz"))
  21. ;; (sha256
  22. ;; (base32
  23. ;; "1nyscqwlxdm2qppivp73r04j31gvhw9achb0ivy2rbbxnjx2prvr"))
  24. ;; (patches (list "./bootstrap-fix.patch"
  25. ;; "./fix-unexport-env-test.patch"))))
  26. ;; (build-system gnu-build-system)
  27. ;; (arguments
  28. ;; `(#:tests? #f
  29. ;; #:make-flags
  30. ;; (let ((bash (assoc-ref %build-inputs "bash")))
  31. ;; (list (string-append "SHELL=" bash "/bin/bash")))
  32. ;; ;; #:phases (modify-phases %standard-phases
  33. ;; ;; (replace 'configure
  34. ;; ;; (lambda* (#:key (configure-flags '()) #:allow-other-keys)
  35. ;; ;; (let ((bash (which "bash")))
  36. ;; ;; (setenv "SHELL" bash)
  37. ;; ;; (setenv "CONFIG_SHELL" bash)
  38. ;; ;; (apply invoke "sh" "boot-strap" configure-flags))))
  39. ;; ;; (delete 'build))
  40. ;; ;; #:phases (modify-phases %standard-phases
  41. ;; ;; (replace 'build
  42. ;; ;; (lambda _
  43. ;; ;; (invoke "sh"
  44. ;; ;; "make-bootstrap.sh")))
  45. ;; ;; ;; (add-after 'install 'install-plugin-headers
  46. ;; ;; ;; (lambda* (#:key outputs #:allow-other-keys)
  47. ;; ;; ;; (let* ((out (assoc-ref outputs "out"))
  48. ;; ;; ;; (include-dir (string-append out "/include"))
  49. ;; ;; ;; (install-include (cut install-file <> include-dir)))
  50. ;; ;; ;; (mkdir-p include-dir)
  51. ;; ;; ;; (for-each install-include
  52. ;; ;; ;; (find-files "standalone" "\\.h$"))
  53. ;; ;; ;; (for-each install-include
  54. ;; ;; ;; (find-files "apache2" "\\.h$")))))
  55. ;; ;; )
  56. ;; ))
  57. ;; (native-inputs
  58. ;; `(("sed" ,sed)
  59. ;; ("coreutils" ,coreutils)))
  60. ;; (home-page "http://www.crufty.net/help/sjg/bmake.html")
  61. ;; (synopsis "Portable version of NetBSD @code{make}")
  62. ;; (description "Portable version of NetBSD @code{make}")
  63. ;; (license license:bsd-3)))
  64. (define-public identiconpp
  65. (package
  66. (name "identiconpp")
  67. (version "0.7.1")
  68. (source
  69. (origin
  70. (method git-fetch)
  71. (uri (git-reference
  72. (url "https://schlomp.space/tastytea/identiconpp.git")
  73. (commit version)))
  74. (file-name (git-file-name name version))
  75. (sha256
  76. (base32
  77. "12c4yl92kk4ck9gd0qg4ywk0kk77gcxrw44rznyn91lj3win9xfa"))))
  78. (build-system cmake-build-system)
  79. (arguments
  80. '(#:tests? #f))
  81. (native-inputs
  82. `(("pkg-config" ,pkg-config)))
  83. (inputs
  84. `(("imagemagick" ,imagemagick)))
  85. (home-page "https://schlomp.space/tastytea/identiconpp")
  86. (synopsis "Generate identicons for C++")
  87. (description "identiconpp is a library to generate identicons for
  88. C++.")
  89. (license license:gpl3)))
  90. (define-public libravatarserv
  91. (package
  92. (name "libravatarserv")
  93. (version "0.7.2")
  94. (source
  95. (origin
  96. (method git-fetch)
  97. (uri (git-reference
  98. (url "https://schlomp.space/tastytea/libravatarserv.git")
  99. (commit version)))
  100. (file-name (git-file-name name version))
  101. (sha256
  102. (base32
  103. "0jwpwia5i8m8h0cbkwj143fbk1954qwpk675rxrki9sra0vp9rsq"))))
  104. (build-system cmake-build-system)
  105. (arguments
  106. '(#:tests? #f))
  107. (native-inputs
  108. `(("pkg-config" ,pkg-config)))
  109. (inputs
  110. `(("imagemagick" ,imagemagick)
  111. ("crypto++" ,crypto++)
  112. ("libxdg-basedir" ,libxdg-basedir)
  113. ("identiconpp" ,identiconpp)))
  114. (home-page "https://schlomp.space/tastytea/libravatarserv")
  115. (synopsis "Simple libravatar server")
  116. (description "libravatarserv is a simple libravatar server. It is
  117. intended to be used as a CGI program. It is a free service and an open
  118. specification for hosting profile images tied to email or OpenID
  119. addresses.")
  120. (license license:gpl3)))
  121. libravatarserv