From 045870096d132a90682ad99deb19423a3cd532b8 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 7 Apr 2024 11:55:43 +0200 Subject: [PATCH] freetype@2.9 --- modules/freetype/2.9/MODULE.bazel | 4 + .../freetype/2.9/patches/add_build_file.patch | 97 +++++++++++++++++++ .../2.9/patches/module_dot_bazel.patch | 7 ++ modules/freetype/2.9/presubmit.yml | 17 ++++ modules/freetype/2.9/source.json | 10 ++ modules/freetype/metadata.json | 14 +++ 6 files changed, 149 insertions(+) create mode 100644 modules/freetype/2.9/MODULE.bazel create mode 100644 modules/freetype/2.9/patches/add_build_file.patch create mode 100644 modules/freetype/2.9/patches/module_dot_bazel.patch create mode 100644 modules/freetype/2.9/presubmit.yml create mode 100644 modules/freetype/2.9/source.json create mode 100644 modules/freetype/metadata.json diff --git a/modules/freetype/2.9/MODULE.bazel b/modules/freetype/2.9/MODULE.bazel new file mode 100644 index 00000000000..36726fadaae --- /dev/null +++ b/modules/freetype/2.9/MODULE.bazel @@ -0,0 +1,4 @@ +module( + name = "freetype", + version = "2.9", +) diff --git a/modules/freetype/2.9/patches/add_build_file.patch b/modules/freetype/2.9/patches/add_build_file.patch new file mode 100644 index 00000000000..bee4b504d1c --- /dev/null +++ b/modules/freetype/2.9/patches/add_build_file.patch @@ -0,0 +1,97 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,94 @@ ++licenses(["notice"]) ++ ++cc_library( ++ name = "freetype", ++ srcs = [ ++ "src/autofit/afangles.c", ++ "src/autofit/afblue.c", ++ "src/autofit/afcjk.c", ++ "src/autofit/afdummy.c", ++ "src/autofit/afglobal.c", ++ "src/autofit/afhints.c", ++ "src/autofit/afindic.c", ++ "src/autofit/aflatin.c", ++ "src/autofit/afloader.c", ++ "src/autofit/afmodule.c", ++ "src/autofit/afpic.c", ++ "src/autofit/afranges.c", ++ "src/autofit/afshaper.c", ++ "src/autofit/afwarp.c", ++ "src/base/basepic.c", ++ "src/base/ftadvanc.c", ++ "src/base/ftapi.c", ++ "src/base/ftbbox.c", ++ "src/base/ftbdf.c", ++ "src/base/ftbitmap.c", ++ "src/base/ftcalc.c", ++ "src/base/ftcid.c", ++ "src/base/ftdbgmem.c", ++ "src/base/ftdebug.c", ++ "src/base/ftfntfmt.c", ++ "src/base/ftfstype.c", ++ "src/base/ftgasp.c", ++ "src/base/ftgloadr.c", ++ "src/base/ftglyph.c", ++ "src/base/ftgxval.c", ++ "src/base/fthash.c", ++ "src/base/ftinit.c", ++ "src/base/ftlcdfil.c", ++ "src/base/ftmm.c", ++ "src/base/ftobjs.c", ++ "src/base/ftotval.c", ++ "src/base/ftoutln.c", ++ "src/base/ftpatent.c", ++ "src/base/ftpfr.c", ++ "src/base/ftpic.c", ++ "src/base/ftrfork.c", ++ "src/base/ftsnames.c", ++ "src/base/ftstream.c", ++ "src/base/ftstroke.c", ++ "src/base/ftsynth.c", ++ "src/base/ftsystem.c", ++ "src/base/fttrigon.c", ++ "src/base/fttype1.c", ++ "src/base/ftutil.c", ++ "src/base/ftwinfnt.c", ++ "src/gzip/ftgzip.c", ++ "src/raster/ftraster.c", ++ "src/raster/ftrend1.c", ++ "src/raster/rastpic.c", ++ "src/sfnt/pngshim.c", ++ "src/sfnt/sfdriver.c", ++ "src/sfnt/sfntpic.c", ++ "src/sfnt/sfobjs.c", ++ "src/sfnt/ttbdf.c", ++ "src/sfnt/ttcmap.c", ++ "src/sfnt/ttkern.c", ++ "src/sfnt/ttload.c", ++ "src/sfnt/ttmtx.c", ++ "src/sfnt/ttpost.c", ++ "src/sfnt/ttsbit.c", ++ "src/smooth/ftgrays.c", ++ "src/smooth/ftsmooth.c", ++ "src/smooth/ftspic.c", ++ "src/truetype/ttdriver.c", ++ "src/truetype/ttgload.c", ++ "src/truetype/ttgxvar.c", ++ "src/truetype/ttinterp.c", ++ "src/truetype/ttobjs.c", ++ "src/truetype/ttpic.c", ++ "src/truetype/ttpload.c", ++ "src/truetype/ttsubpix.c", ++ ], ++ hdrs = glob([ ++ "src/**/*.h", ++ "include/**/*.h", ++ ]), ++ copts = [ ++ "-DFT2_BUILD_LIBRARY", ++ "-UDEBUG", ++ ], ++ includes = ["include"], ++ textual_hdrs = glob(["src/**/*.c"]), ++ visibility = ["//visibility:public"], ++) diff --git a/modules/freetype/2.9/patches/module_dot_bazel.patch b/modules/freetype/2.9/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..f5682fefdc1 --- /dev/null +++ b/modules/freetype/2.9/patches/module_dot_bazel.patch @@ -0,0 +1,7 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,4 @@ ++module( ++ name = "freetype", ++ version = "2.9", ++) diff --git a/modules/freetype/2.9/presubmit.yml b/modules/freetype/2.9/presubmit.yml new file mode 100644 index 00000000000..9b6392b156c --- /dev/null +++ b/modules/freetype/2.9/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@freetype//...' diff --git a/modules/freetype/2.9/source.json b/modules/freetype/2.9/source.json new file mode 100644 index 00000000000..5e45993127d --- /dev/null +++ b/modules/freetype/2.9/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.gz", + "integrity": "sha256-vzgOTXxPO1scGnsr86u5Z72l6atIDQ32VuDgjFAZxeY=", + "strip_prefix": "freetype-2.9", + "patches": { + "add_build_file.patch": "sha256-wYf/d2HSVSt5mwiFdaOtYtsLe81YYJxnW16AFAgVYJk=", + "module_dot_bazel.patch": "sha256-ZLsAaH0i0tmnWzNG8HbpRJ7MuDrKohr7LBKzgzYxgnI=" + }, + "patch_strip": 0 +} diff --git a/modules/freetype/metadata.json b/modules/freetype/metadata.json new file mode 100644 index 00000000000..671fdab2115 --- /dev/null +++ b/modules/freetype/metadata.json @@ -0,0 +1,14 @@ +{ + "homepage": "https://freetype.org/", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [], + "versions": [ + "2.9" + ], + "yanked_versions": {} +}