diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /app-arch/xdms | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'app-arch/xdms')
| -rw-r--r-- | app-arch/xdms/Manifest | 1 | ||||
| -rw-r--r-- | app-arch/xdms/files/xdms-1.3.2-dont-compress-man-pages.patch | 13 | ||||
| -rw-r--r-- | app-arch/xdms/files/xdms-1.3.2-fix-build-with-gcc-10.patch | 80 | ||||
| -rw-r--r-- | app-arch/xdms/files/xdms-1.3.2-respect-DESTDIR.patch | 22 | ||||
| -rw-r--r-- | app-arch/xdms/metadata.xml | 12 | ||||
| -rw-r--r-- | app-arch/xdms/xdms-1.3.2-r2.ebuild | 41 |
6 files changed, 169 insertions, 0 deletions
diff --git a/app-arch/xdms/Manifest b/app-arch/xdms/Manifest new file mode 100644 index 000000000000..923266cb852d --- /dev/null +++ b/app-arch/xdms/Manifest @@ -0,0 +1 @@ +DIST xdms-1.3.2.tar.bz2 43010 BLAKE2B 97118ce2052a93e334b02d1687e4c867f7158bdd99bfc4249a7a22d1eee57c6d6bbb26c640f0bdb61004997fcb6218724de40c759ae51f4b72da8dee0ebde48d SHA512 e29dd1d2373c635ba953ef526849e0b8fa645a0da91fff3a3512ce26eee43fb2c1280f27fae0a42a4fd47106494d6e44c5684eff3581661e538780927b851cac diff --git a/app-arch/xdms/files/xdms-1.3.2-dont-compress-man-pages.patch b/app-arch/xdms/files/xdms-1.3.2-dont-compress-man-pages.patch new file mode 100644 index 000000000000..3396b59a309c --- /dev/null +++ b/app-arch/xdms/files/xdms-1.3.2-dont-compress-man-pages.patch @@ -0,0 +1,13 @@ +From: Sam James <sam@gentoo.org> +Subject: [PATCH 2/2] Don't compress man pages +--- a/Makefile.in ++++ b/Makefile.in +@@ -11,5 +11,4 @@ install: xdms + install xdms.txt COPYING ChangeLog.txt ${DESTDIR}{PREFIX}/share/doc/xdms-{VERSION}/ + chmod og+rx ${DESTDIR}{PREFIX}/bin ${DESTDIR}{PREFIX}/bin/xdms + chmod -R og+rX ${DESTDIR}{PREFIX}/share/doc/xdms-{VERSION} +- gzip < xdms.1 > xdms.1.gz +- install xdms.1.gz ${DESTDIR}{PREFIX}/share/man/man1/ ++ install xdms.1 ${DESTDIR}{PREFIX}/share/man/man1/ +-- + diff --git a/app-arch/xdms/files/xdms-1.3.2-fix-build-with-gcc-10.patch b/app-arch/xdms/files/xdms-1.3.2-fix-build-with-gcc-10.patch new file mode 100644 index 000000000000..dad00addead3 --- /dev/null +++ b/app-arch/xdms/files/xdms-1.3.2-fix-build-with-gcc-10.patch @@ -0,0 +1,80 @@ +https://sources.debian.org/patches/xdms/1.3.2-7/0002-Fix-build-with-gcc-10.patch/ + +From: Jeff Law <law@redhat.com> +Date: Sat, 9 May 2020 15:16:39 +0200 +Subject: Fix build with gcc-10 +--- a/src/u_deep.c ++++ b/src/u_deep.c +@@ -17,9 +17,9 @@ + #include "getbits.h" + + +-INLINE USHORT DecodeChar(void); +-INLINE USHORT DecodePosition(void); +-INLINE void update(USHORT c); ++static INLINE USHORT DecodeChar(void); ++static INLINE USHORT DecodePosition(void); ++static INLINE void update(USHORT c); + static void reconst(void); + + +@@ -98,7 +98,7 @@ USHORT Unpack_DEEP(UCHAR *in, UCHAR *out, USHORT origsize){ + + + +-INLINE USHORT DecodeChar(void){ ++static INLINE USHORT DecodeChar(void){ + USHORT c; + + c = son[R]; +@@ -117,7 +117,7 @@ INLINE USHORT DecodeChar(void){ + + + +-INLINE USHORT DecodePosition(void){ ++static INLINE USHORT DecodePosition(void){ + USHORT i, j, c; + + i = GETBITS(8); DROPBITS(8); +@@ -171,7 +171,7 @@ static void reconst(void){ + + /* increment frequency of given code by one, and update tree */ + +-INLINE void update(USHORT c){ ++static INLINE void update(USHORT c){ + USHORT i, j, k, l; + + if (freq[R] == MAX_FREQ) { +diff --git a/src/u_heavy.c b/src/u_heavy.c +index fff93d3..8557b71 100644 +--- a/src/u_heavy.c ++++ b/src/u_heavy.c +@@ -30,8 +30,8 @@ USHORT heavy_text_loc; + + static USHORT read_tree_c(void); + static USHORT read_tree_p(void); +-INLINE USHORT decode_c(void); +-INLINE USHORT decode_p(void); ++static INLINE USHORT decode_c(void); ++static INLINE USHORT decode_p(void); + + + +@@ -74,7 +74,7 @@ USHORT Unpack_HEAVY(UCHAR *in, UCHAR *out, UCHAR flags, USHORT origsize){ + + + +-INLINE USHORT decode_c(void){ ++static INLINE USHORT decode_c(void){ + USHORT i, j, m; + + j = c_table[GETBITS(12)]; +@@ -96,7 +96,7 @@ INLINE USHORT decode_c(void){ + + + +-INLINE USHORT decode_p(void){ ++static INLINE USHORT decode_p(void){ + USHORT i, j, m; + + j = pt_table[GETBITS(8)]; diff --git a/app-arch/xdms/files/xdms-1.3.2-respect-DESTDIR.patch b/app-arch/xdms/files/xdms-1.3.2-respect-DESTDIR.patch new file mode 100644 index 000000000000..3db969932084 --- /dev/null +++ b/app-arch/xdms/files/xdms-1.3.2-respect-DESTDIR.patch @@ -0,0 +1,22 @@ +From: Sam James <sam@gentoo.org> +Subject: [PATCH 1/2] Respect DESTDIR +--- a/Makefile.in ++++ b/Makefile.in +@@ -6,10 +6,10 @@ clean: + $(MAKE) -C src clean + + install: xdms +- mkdir -p {PREFIX}/bin {PREFIX}/share/doc/xdms-{VERSION} {PREFIX}/share/man/man1 +- install src/xdms {PREFIX}/bin/ +- install xdms.txt COPYING ChangeLog.txt {PREFIX}/share/doc/xdms-{VERSION}/ +- chmod og+rx {PREFIX}/bin {PREFIX}/bin/xdms +- chmod -R og+rX {PREFIX}/share/doc/xdms-{VERSION} ++ mkdir -p ${DESTDIR}{PREFIX}/bin ${DESTDIR}{PREFIX}/share/doc/xdms-{VERSION} ${DESTDIR}{PREFIX}/share/man/man1 ++ install src/xdms ${DESTDIR}{PREFIX}/bin/ ++ install xdms.txt COPYING ChangeLog.txt ${DESTDIR}{PREFIX}/share/doc/xdms-{VERSION}/ ++ chmod og+rx ${DESTDIR}{PREFIX}/bin ${DESTDIR}{PREFIX}/bin/xdms ++ chmod -R og+rX ${DESTDIR}{PREFIX}/share/doc/xdms-{VERSION} + gzip < xdms.1 > xdms.1.gz +- install xdms.1.gz {PREFIX}/share/man/man1/ ++ install xdms.1.gz ${DESTDIR}{PREFIX}/share/man/man1/ +-- diff --git a/app-arch/xdms/metadata.xml b/app-arch/xdms/metadata.xml new file mode 100644 index 000000000000..03f908b1df24 --- /dev/null +++ b/app-arch/xdms/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + Supports decompression of files compressed using all known DMS compression modes, including old and obsolete ones, and also encrypted files, for 100% compatibility. + Can test DMS files integrity, view file informations and show attached Banners and FILEID.DIZ . + Can generate standard disk images and compressed disk images, using gzip, if you want to store your files in ADF or ADZ formats. + Can extract the files contained inside the DMS archives, if the compressed disk is an AmigaDOS disk, using readdisk made by Bernd Schmidt. + Can process multiple files in batch with a single command, and also use stdin and stdout for input and output of data. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/app-arch/xdms/xdms-1.3.2-r2.ebuild b/app-arch/xdms/xdms-1.3.2-r2.ebuild new file mode 100644 index 000000000000..07dce668c10a --- /dev/null +++ b/app-arch/xdms/xdms-1.3.2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="xDMS - Amiga DMS disk image decompressor" +HOMEPAGE="https://zakalwe.fi/~shd/foss/xdms" +SRC_URI="https://zakalwe.fi/~shd/foss/xdms/${P}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc x86" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.2-respect-DESTDIR.patch + "${FILESDIR}"/${PN}-1.3.2-dont-compress-man-pages.patch + "${FILESDIR}"/${PN}-1.3.2-fix-build-with-gcc-10.patch +) + +src_prepare() { + default + + sed -i Makefile.in \ + -e "s:COPYING::" \ + -e "s:share/doc/xdms-{VERSION}:share/doc/${PF}:" || die + + sed -i -e "s:-O2::" src/Makefile.in || die +} + +src_configure() { + tc-export CC + + if [[ ${CHOST} == *-darwin* ]] ; then + # Needed to avoid typical "Undefined symbols for architecture x86_64" + append-ldflags -undefined dynamic_lookup + fi + + ./configure --prefix="${EPREFIX}"/usr || die +} |
