Skip to content

Commit

Permalink
Add proxy-libintl port
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Nov 1, 2023
1 parent 27d7979 commit 8ac9242
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/proxy-libintl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: proxy-libintl
on:
workflow_dispatch:
push:
paths:
- 'buildSrc/**'
- 'proxy-libintl/**'
- '.github/workflows/build.yml'
- '.github/workflows/proxy-libintl.yml'

jobs:
build:
name: proxy-libintl
uses: ./.github/workflows/build.yml
with:
package: proxy-libintl
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,11 @@ Figure out proper way to deliver per ABI headers.
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/libxml2-ndk25-shared.svg?label=Maven%20Central%20libxml2-ndk25-shared)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:libxml2-ndk25-shared)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/libxml2-ndk26-static.svg?label=Maven%20Central%20libxml2-ndk26-static)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:libxml2-ndk26-static)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/libxml2-ndk26-shared.svg?label=Maven%20Central%20libxml2-ndk26-shared)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:libxml2-ndk26-shared)

#### [proxy-libintl](https://github.com/ViliusSutkus89/proxy-libintl)

[![proxy-libintl](https://github.com/ViliusSutkus89/ndkports/actions/workflows/proxy-libintl.yml/badge.svg)](https://github.com/ViliusSutkus89/ndkports/actions/workflows/proxy-libintl.yml)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/proxy-libintl-ndk25-static.svg?label=Maven%20Central%20proxy-libintl-ndk25-static)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:proxy-libintl-ndk25-static)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/proxy-libintl-ndk25-shared.svg?label=Maven%20Central%20proxy-libintl-ndk25-shared)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:proxy-libintl-ndk25-shared)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/proxy-libintl-ndk26-static.svg?label=Maven%20Central%20proxy-libintl-ndk26-static)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:proxy-libintl-ndk26-static)
[![Maven Central](https://img.shields.io/maven-central/v/com.viliussutkus89.ndk.thirdparty/proxy-libintl-ndk26-shared.svg?label=Maven%20Central%20proxy-libintl-ndk26-shared)](https://search.maven.org/search?q=g:com.viliussutkus89.ndk.thirdparty%20AND%20a:proxy-libintl-ndk26-shared)
117 changes: 117 additions & 0 deletions proxy-libintl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import com.android.ndkports.MesonPortTask
import com.android.ndkports.CMakeCompatibleVersion
import com.android.ndkports.PrefabSysrootPlugin
import org.gradle.jvm.tasks.Jar

val portVersion = "0.4.1"

group = rootProject.group
version = portVersion

plugins {
id("maven-publish")
id("signing")
id("com.android.ndkports.NdkPorts")
}

ndkPorts {
ndkPath.set(File(project.findProperty("ndkPath") as String))
source.set(project.file("${name}-${portVersion}.tar.gz"))
minSdkVersion.set(rootProject.extra.get("minSdkSupportedByNdk").toString().toInt())
}

tasks.prefab {
generator.set(PrefabSysrootPlugin::class.java)
}

tasks.register<MesonPortTask>("buildPort") {
meson { }
}

tasks.prefabPackage {
version.set(CMakeCompatibleVersion.parse(portVersion))

licensePath.set("COPYING")

modules {
create("intl") {
includesPerAbi.set(true)
static.set(project.findProperty("libraryType") == "static")
}
}
}

val packageSources = tasks.register<Jar>("packageSources") {
archiveClassifier.set("sources")
from(projectDir.resolve("build.gradle.kts"))
from(ndkPorts.source)
}

publishing {
publications {
create<MavenPublication>("release") {
from(components["prefab"])
artifactId += rootProject.extra.get("ndkVersionSuffix")
artifactId += rootProject.extra.get("libraryTypeSuffix")
artifact(packageSources)
pom {
name.set("proxy-libintl")
description.set("This is a trivial minimal library intended to act as a proxy for a dynamically loaded optional libintl.")
url.set("https://github.com/ViliusSutkus89/proxy-libintl")
licenses {
license {
name.set("GPLv2")
url.set("https://raw.githubusercontent.com/ViliusSutkus89/proxy-libintl/0.2/COPYING")
distribution.set("repo")
}
}
developers {
// Developer list obtained from:
// https://github.com/ViliusSutkus89/proxy-libintl/blob/0.4.1/README.md
// https://github.com/ViliusSutkus89/proxy-libintl/graphs/contributors
developer {
name.set("Tor Lillqvist")
email.set("[email protected]")
}
developer {
name.set("Geoffrey Wossum")
}
developer {
name.set("Nirbheek Chauhan")
id.set("nirbheek")
}
developer {
name.set("Amos Wenger")
id.set("fasterthanlime")
}
developer {
name.set("Aleksandr Mezin")
id.set("amezin")
}
developer {
name.set("Ole André Vadla Ravnås")
id.set("oleavr")
}
developer {
name.set("Vilius Sutkus '89")
id.set("ViliusSutkus89")
}
}
scm {
url.set("https://github.com/ViliusSutkus89/ndkports")
connection.set("scm:git:https://github.com/ViliusSutkus89/ndkports.git")
}
}
}
}
}

afterEvaluate {
System.getenv("SIGNING_KEY")?.let { signingKey ->
signing {
isRequired = true
useInMemoryPgpKeys(signingKey, System.getenv("SIGNING_PASS"))
sign(publishing.publications.findByName("release"))
}
}
}
Binary file added proxy-libintl/proxy-libintl-0.4.1.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencyResolutionManagement {
include(":libffi")
include(":freetype")
include(":libiconv")
include(":proxy-libintl")
include(":pcre2")
include(":libpng")
include(":libjpeg-turbo")
Expand Down

0 comments on commit 8ac9242

Please sign in to comment.