woff2: new package for fontforge
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Licensed under the GNU General Public License, version 3.
|
||||||
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
|
from pisi.actionsapi import cmaketools
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
shelltools.makedirs("build")
|
||||||
|
shelltools.cd("build")
|
||||||
|
|
||||||
|
cmaketools.configure("-D CMAKE_POLICY_VERSION_MINIMUM=3.5", sourceDir="..")
|
||||||
|
|
||||||
|
def build():
|
||||||
|
shelltools.cd("build")
|
||||||
|
cmaketools.make()
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pisitools.dodoc("README*", "LICENSE")
|
||||||
|
|
||||||
|
shelltools.cd("build")
|
||||||
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||||
|
Date: Wed, 14 May 2025 01:43:30 +0200
|
||||||
|
Subject: [PATCH] HACK: Install binaries
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index ecfbb831c4e3..13b147944694 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -260,7 +260,7 @@ generate_pkg_config ("${CMAKE_CURRENT_BINARY_DIR}/libwoff2enc.pc"
|
||||||
|
LIBRARIES woff2enc)
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
-if (NOT BUILD_SHARED_LIBS)
|
||||||
|
+if (TRUE)
|
||||||
|
install(
|
||||||
|
TARGETS woff2_decompress woff2_compress woff2_info
|
||||||
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
+41
@@ -0,0 +1,41 @@
|
|||||||
|
From 08ece7871775c0d7bf4fdff64b961cdc256adf6c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sergei Trofimovich <slyich@gmail.com>
|
||||||
|
Date: Fri, 2 Aug 2024 22:12:03 +0100
|
||||||
|
Subject: [PATCH] include/woff2/output.h: add missing <stdint.h> include
|
||||||
|
|
||||||
|
Without the change `woff2` build fails on upcoming `gcc-15` as:
|
||||||
|
|
||||||
|
In file included from src/woff2_out.cc:9:
|
||||||
|
include/woff2/output.h:73:25: error: expected ')' before '*' token
|
||||||
|
73 | WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
|
||||||
|
| ~ ^
|
||||||
|
| )
|
||||||
|
include/woff2/output.h:79:3: error: 'uint8_t' does not name a type
|
||||||
|
79 | uint8_t* buf_;
|
||||||
|
| ^~~~~~~
|
||||||
|
include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>';
|
||||||
|
this is probably fixable by adding '#include <cstdint>'
|
||||||
|
15 | #include <string>
|
||||||
|
+++ |+#include <cstdint>
|
||||||
|
16 |
|
||||||
|
|
||||||
|
Upstream: https://github.com/google/woff2/pull/176
|
||||||
|
|
||||||
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||||
|
---
|
||||||
|
include/woff2/output.h | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/include/woff2/output.h b/include/woff2/output.h
|
||||||
|
index dc78ccf..b12d538 100644
|
||||||
|
--- a/include/woff2/output.h
|
||||||
|
+++ b/include/woff2/output.h
|
||||||
|
@@ -9,6 +9,8 @@
|
||||||
|
#ifndef WOFF2_WOFF2_OUT_H_
|
||||||
|
#define WOFF2_WOFF2_OUT_H_
|
||||||
|
|
||||||
|
+#include <stdint.h>
|
||||||
|
+
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstring>
|
||||||
|
#include <memory>
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>woff2</Name>
|
||||||
|
<Homepage>https://github.com/google/woff2</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>Kamil Atlı</Name>
|
||||||
|
<Email>suvari@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>MIT</License>
|
||||||
|
<Icon>woff2</Icon>
|
||||||
|
<Summary>Encode/decode WOFF2 font format</Summary>
|
||||||
|
<Description>Web Open Font Format 2 reference implementation</Description>
|
||||||
|
<Archive sha1sum="bab4838b248026c968e171a5467b5176caf4e2e5" type="targz">https://github.com/google/woff2/archive/refs/tags/v1.0.2.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>git</Dependency>
|
||||||
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>ninja</Dependency>
|
||||||
|
<Dependency>brotli-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch>0001-HACK-Install-binaries.patch</Patch>
|
||||||
|
<Patch>0002-include-woff2-output.h-add-missing-stdint.h-include.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>woff2</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>brotli</Dependency>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="library">/usr/lib/libwoff2dec*</Path>
|
||||||
|
<Path fileType="library">/usr/lib/libwoff2common.so*</Path>
|
||||||
|
<Path fileType="library">/usr/lib/libwoff2enc.so*</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>woff2-devel</Name>
|
||||||
|
<Summary>Development files for woff2</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>brotli-devel</Dependency>
|
||||||
|
<Dependency release="current">woff2</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2026-03-29</Date>
|
||||||
|
<Version>1.0.2</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Kamil Atlı</Name>
|
||||||
|
<Email>suvari@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>woff2</Name>
|
||||||
|
<Summary xml:lang="tr">WOFF2 yazı tipi formatını kodlama/kod çözme</Summary>
|
||||||
|
<Description xml:lang="tr">Web Açık Yazı Tipi Biçimi 2 referans uygulaması</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
+354425
-355612
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
66829f1bc96e33a8d213a49058c311c894ce542d
|
a3a3bbf5109a0e2b4dd11543b5d9630cc8cdda50
|
||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
0fff981aedfc7e406da08d423b046941d9befb03
|
20ab7ddca385e9c0ad507735778aa810c8971aa7
|
||||||
Reference in New Issue
Block a user