Skip to content

Commit 9dd4bbb

Browse files
knyipablicy183
authored andcommitted
new package: libfreehand
1 parent 03ebf07 commit 9dd4bbb

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

tur/libfreehand/build.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
TERMUX_PKG_HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
2+
TERMUX_PKG_DESCRIPTION="a library for import of Aldus/Macromedia/Adobe FreeHand documents"
3+
TERMUX_PKG_LICENSE="MPL-2.0"
4+
TERMUX_PKG_MAINTAINER="@termux-user-repository"
5+
TERMUX_PKG_VERSION=0.1.2
6+
TERMUX_PKG_SRCURL="https://dev-www.libreoffice.org/src/libfreehand/libfreehand-${TERMUX_PKG_VERSION}.tar.xz"
7+
TERMUX_PKG_SHA256=0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac
8+
TERMUX_PKG_DEPENDS="boost, littlecms, libicu, librevenge, zlib"
9+
TERMUX_PKG_BUILD_DEPENDS="boost-headers, gperf"
10+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
11+
--disable-tests
12+
--disable-werror
13+
"
14+
15+
termux_step_post_configure() {
16+
# Avoid overlinking
17+
sed -i 's/ -shared / -Wl,--as-needed\0/g' ./libtool
18+
}
19+
20+
termux_step_post_massage() {
21+
# Do not forget to bump revision of reverse dependencies and rebuild them
22+
# after SOVERSION is changed.
23+
local _SOVERSION_GUARD_FILES="
24+
lib/libfreehand-0.1.so
25+
"
26+
local f
27+
for f in ${_SOVERSION_GUARD_FILES}; do
28+
if [ ! -e "${f}" ]; then
29+
termux_error_exit "SOVERSION guard check failed."
30+
fi
31+
done
32+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From af3197f795625f5188602073205a34369698b6df Mon Sep 17 00:00:00 2001
2+
From: Heiko Becker <[email protected]>
3+
Date: Fri, 4 Oct 2019 01:46:12 +0200
4+
Subject: [PATCH] Add missing semicolon to fix build with icu 65.1
5+
6+
Change-Id: I7a0b0d600e9f7770245a7485813a944bfac4f088
7+
Reviewed-on: https://gerrit.libreoffice.org/80224
8+
Reviewed-by: Miklos Vajna <[email protected]>
9+
Tested-by: Miklos Vajna <[email protected]>
10+
---
11+
src/lib/libfreehand_utils.cpp | 2 +-
12+
1 file changed, 1 insertion(+), 1 deletion(-)
13+
14+
diff --git a/src/lib/libfreehand_utils.cpp b/src/lib/libfreehand_utils.cpp
15+
index 439c457..32f23e0 100644
16+
--- a/src/lib/libfreehand_utils.cpp
17+
+++ b/src/lib/libfreehand_utils.cpp
18+
@@ -162,7 +162,7 @@ void libfreehand::_appendUTF16(librevenge::RVNGString &text, std::vector<unsigne
19+
while (j < length)
20+
{
21+
UChar32 c;
22+
- U16_NEXT(s, j, length, c)
23+
+ U16_NEXT(s, j, length, c);
24+
unsigned char outbuf[U8_MAX_LENGTH+1];
25+
int i = 0;
26+
U8_APPEND_UNSAFE(&outbuf[0], i, c);
27+
--
28+
2.23.0
29+

0 commit comments

Comments
 (0)