Skip to content

Commit

Permalink
ports/gettext,libintl: Update port and add host-recipe for gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jan 12, 2024
1 parent 53bcdb8 commit cb403b7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
17 changes: 17 additions & 0 deletions host-recipes/gettext
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name=gettext
from_source=gettext
revision=1
imagedeps="gcc"

build() {
"${source_dir}"/configure --prefix="${prefix}"

make -j${parallelism}
}

package() {
DESTDIR="${dest_dir}" make install

strip_command=strip \
post_package_strip
}
14 changes: 1 addition & 13 deletions recipes/libintl
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
name=libintl
version=0.22.3
from_source=gettext
revision=1
tarball_url="https://ftp.gnu.org/gnu/gettext/gettext-${version}.tar.gz"
tarball_blake2b="aebe85a82cb94c37ed81e9801acf1e89d150f5992fb9be42d53b3f2734c5c95804f0051fabc26b8d0892dfaf89d18df16d4bca6bcb2e9b95eef5d4ae93a64379"
source_hostdeps="autoconf automake libtool pkg-config"
hostdeps="gcc automake autoconf libtool pkg-config"
deps="mlibc libgcc libstdc++ libiconv"

regenerate() {
( cd gettext-runtime/libasprintf && autoreconf -fvi )
( cd gettext-runtime/intl && autoreconf -fvi )
( cd gettext-runtime && autoreconf -fvi )
( cd gettext-tools && autoreconf -fvi )
( cd libtextstyle && autoreconf -fvi )
autoreconf -fvi
}

build() {
ACLOCAL=true \
AUTOCONF=true \
Expand Down
14 changes: 14 additions & 0 deletions source-recipes/gettext
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name=gettext
version=0.22.4
tarball_url="https://ftp.gnu.org/gnu/gettext/gettext-${version}.tar.xz"
tarball_blake2b="3f93aa5aef8e40d2e01acaa5aeed11efefd0de43ea26d084a0b9e743019685f7584d8e1bf05c1fd5772a5576d21ee1f052b81366f52c7827b6d14bd4d9890edc"
hostdeps="autoconf automake libtool pkg-config"

regenerate() {
( cd gettext-runtime/libasprintf && autoreconf -fvi )
( cd gettext-runtime/intl && autoreconf -fvi )
( cd gettext-runtime && autoreconf -fvi )
( cd gettext-tools && autoreconf -fvi )
( cd libtextstyle && autoreconf -fvi )
autoreconf -fvi
}

0 comments on commit cb403b7

Please sign in to comment.