aboutsummaryrefslogtreecommitdiff
path: root/extra/groff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-21 09:02:22 +0300
committerCem Keylan <cem@ckyln.com>2020-01-21 09:02:22 +0300
commit9937fb0ac6436c8a33250bbe35b331af16b930fa (patch)
tree6d92f4350b4034d24a4eb48e6827b6d5b4b2240a /extra/groff
parent86ff5b94edd565aad397bb797f4d8dac2f98ec74 (diff)
downloadrepository-9937fb0ac6436c8a33250bbe35b331af16b930fa.tar.gz
groff: add package to extra
Diffstat (limited to 'extra/groff')
-rwxr-xr-xextra/groff/build16
-rw-r--r--extra/groff/checksums2
-rw-r--r--extra/groff/files/musl.patch79
-rw-r--r--extra/groff/sources2
-rw-r--r--extra/groff/version1
5 files changed, 100 insertions, 0 deletions
diff --git a/extra/groff/build b/extra/groff/build
new file mode 100755
index 00000000..fd401417
--- /dev/null
+++ b/extra/groff/build
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+patch -p0 < musl.patch
+
+./configure \
+ --prefix=/usr \
+ --without-x \
+ --disable-rpath \
+ --with-doc=no \
+ --disable-nls
+
+make
+make DESTDIR="$1" install
+for file in /usr/share/man/man7/roff.7 /usr/share/man/man1/soelim.1 /usr/bin/soelim ; do
+ rm "$1/$file"
+done
diff --git a/extra/groff/checksums b/extra/groff/checksums
new file mode 100644
index 00000000..327f1cca
--- /dev/null
+++ b/extra/groff/checksums
@@ -0,0 +1,2 @@
+e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293 groff-1.22.4.tar.gz
+002bf93f6d59f8c6e7e3140d6925e985fff689340e69016277aa5ff260bcd123 musl.patch
diff --git a/extra/groff/files/musl.patch b/extra/groff/files/musl.patch
new file mode 100644
index 00000000..9d2b322a
--- /dev/null
+++ b/extra/groff/files/musl.patch
@@ -0,0 +1,79 @@
+--- lib/math.in.h.orig 2019-01-02 16:55:35.064459973 +0100
++++ lib/math.in.h 2019-01-02 17:42:43.450242836 +0100
+@@ -2342,75 +2342,6 @@
+ #endif
+
+
+-#if @GNULIB_SIGNBIT@
+-# if (@REPLACE_SIGNBIT_USING_GCC@ \
+- && (!defined __cplusplus || __cplusplus < 201103))
+-# undef signbit
+- /* GCC 4.0 and newer provides three built-ins for signbit. */
+-# define signbit(x) \
+- (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
+- sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
+- __builtin_signbitf (x))
+-# endif
+-# if @REPLACE_SIGNBIT@
+-# undef signbit
+-_GL_EXTERN_C int gl_signbitf (float arg);
+-_GL_EXTERN_C int gl_signbitd (double arg);
+-_GL_EXTERN_C int gl_signbitl (long double arg);
+-# if __GNUC__ >= 2 && !defined __STRICT_ANSI__
+-# define _GL_NUM_UINT_WORDS(type) \
+- ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
+-# if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf
+-# define gl_signbitf_OPTIMIZED_MACRO
+-# define gl_signbitf(arg) \
+- ({ union { float _value; \
+- unsigned int _word[_GL_NUM_UINT_WORDS (float)]; \
+- } _m; \
+- _m._value = (arg); \
+- (_m._word[FLT_SIGNBIT_WORD] >> FLT_SIGNBIT_BIT) & 1; \
+- })
+-# endif
+-# if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd
+-# define gl_signbitd_OPTIMIZED_MACRO
+-# define gl_signbitd(arg) \
+- ({ union { double _value; \
+- unsigned int _word[_GL_NUM_UINT_WORDS (double)]; \
+- } _m; \
+- _m._value = (arg); \
+- (_m._word[DBL_SIGNBIT_WORD] >> DBL_SIGNBIT_BIT) & 1; \
+- })
+-# endif
+-# if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl
+-# define gl_signbitl_OPTIMIZED_MACRO
+-# define gl_signbitl(arg) \
+- ({ union { long double _value; \
+- unsigned int _word[_GL_NUM_UINT_WORDS (long double)]; \
+- } _m; \
+- _m._value = (arg); \
+- (_m._word[LDBL_SIGNBIT_WORD] >> LDBL_SIGNBIT_BIT) & 1; \
+- })
+-# endif
+-# endif
+-# define signbit(x) \
+- (sizeof (x) == sizeof (long double) ? gl_signbitl (x) : \
+- sizeof (x) == sizeof (double) ? gl_signbitd (x) : \
+- gl_signbitf (x))
+-# endif
+-# ifdef __cplusplus
+-# if defined signbit || defined GNULIB_NAMESPACE
+-_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
+-# undef signbit
+-_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
+-# endif
+-# endif
+-#elif defined GNULIB_POSIXCHECK
+-# if defined signbit
+-_GL_WARN_REAL_FLOATING_DECL (signbit);
+-# undef signbit
+-# define signbit(x) _GL_WARN_REAL_FLOATING_IMPL (signbit, x)
+-# endif
+-#endif
+-
+ _GL_INLINE_HEADER_END
+
+ #endif /* _@GUARD_PREFIX@_MATH_H */
+
diff --git a/extra/groff/sources b/extra/groff/sources
new file mode 100644
index 00000000..8f5e23f2
--- /dev/null
+++ b/extra/groff/sources
@@ -0,0 +1,2 @@
+https://ftp.gnu.org/gnu/groff/groff-1.22.4.tar.gz
+files/musl.patch
diff --git a/extra/groff/version b/extra/groff/version
new file mode 100644
index 00000000..1418be46
--- /dev/null
+++ b/extra/groff/version
@@ -0,0 +1 @@
+1.22.4 1