Last active
April 27, 2025 17:25
-
-
Save jeremyd2019/2af8697a6978f8c580f7e8956f049437 to your computer and use it in GitHub Desktop.
udis86 cygport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.tar.gz | |
udis86-*-*.*/ | |
udis86-1.7.2-docdir.patch | |
udis86-1.7.2-python3.patch | |
udis86-1.7.2-uninitialized-variable.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- udis86-1.7.2.orig/configure.ac 2013-09-01 21:08:39.000000000 -0700 | |
+++ udis86-1.7.2/configure.ac 2025-03-17 11:37:21.151093000 -0700 | |
@@ -24,7 +24,7 @@ | |
AC_CANONICAL_HOST | |
case "$host_os" in | |
- mingw32* ) | |
+ mingw32* | cygwin* | msys* ) | |
TARGET_OS=windows | |
AC_LIBTOOL_WIN32_DLL | |
;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- udis86-1.7.2.orig/m4/ax_prog_sphinx_version.m4 2025-04-24 17:16:02.224554700 -0700 | |
+++ udis86-1.7.2/m4/ax_prog_sphinx_version.m4 2025-04-24 17:17:56.916946800 -0700 | |
@@ -41,6 +41,9 @@ | |
AC_MSG_CHECKING([for sphinx version]) | |
changequote(<<,>>) | |
sphinx_version=`$SPHINX_BUILD -h 2>&1 | $GREP "^Sphinx v" | $SED -e 's/^.* v\([0-9]*\.[0-9]*\.[0-9]*\)/\1/'` | |
+ if test -z "$sphinx_version"; then | |
+ sphinx_version=`$SPHINX_BUILD --version 2>&1 | $GREP "^sphinx-build " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'` | |
+ fi | |
changequote([,]) | |
AC_MSG_RESULT($sphinx_version) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inherit autotools python3 | |
NAME="udis86" | |
VERSION=1.7.2 | |
RELEASE=1 | |
CATEGORY="Libs" | |
SUMMARY="Disassembler for x86 and x86-64 class ISA" | |
DESCRIPTION="A disassembler engine that decodes a stream of binary machine code | |
bytes as opcodes defined in the x86 and x86-64 class of Instruction Set | |
Archictures" | |
HOMEPAGE="http://sourceforge.net/projects/udis86" | |
LICENSE="BSD-2-Clause" | |
BUILD_REQUIRES=" | |
yasm | |
python${PYTHON3_PKGVERSION}-alabaster | |
python${PYTHON3_PKGVERSION}-sphinx | |
python${PYTHON3_PKGVERSION}-sphinxcontrib-applehelp | |
python${PYTHON3_PKGVERSION}-sphinxcontrib-devhelp | |
python${PYTHON3_PKGVERSION}-sphinxcontrib-htmlhelp | |
python${PYTHON3_PKGVERSION}-sphinxcontrib-qthelp | |
" | |
PKG_NAMES="lib${NAME}_0 udcli ${NAME}-devel ${NAME}-doc" | |
udcli_CATEGORY="Devel" | |
udcli_SUMMARY="${SUMMARY} (cli)" | |
udcli_CONTENTS="usr/bin/udcli.exe" | |
libudis86_0_SUMMARY="${SUMMARY} (library)" | |
libudis86_0_CONTENTS="usr/bin/cygudis86-0.dll" | |
udis86_devel_CATEGORY="Devel" | |
udis86_devel_SUMMARY="${SUMMARY} (development files)" | |
udis86_devel_CONTENTS="usr/include/ usr/lib/*.a usr/share/info/" | |
udis86_doc_CATEGORY="Doc" | |
udis86_doc_SUMMARY="${SUMMARY} (documentation)" | |
udis86_doc_CONTENTS="usr/share/doc/" | |
SRC_URI="https://downloads.sourceforge.net/${NAME}/${NAME}-${VERSION}.tar.gz" | |
GENTOO="https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/${NAME}/files" | |
PATCH_URI=" | |
udis86-1.7.2-cygwin-msys.patch | |
udis86-1.7.2-sphinx-version.patch | |
${GENTOO}/udis86-1.7.2-docdir.patch | |
${GENTOO}/udis86-1.7.2-python3.patch | |
${GENTOO}/udis86-1.7.2-uninitialized-variable.patch | |
" | |
# generated sources | |
DIFF_EXCLUDES="itab.?" | |
CYGCONF_ARGS="--with-python=${PYTHON3}" | |
src_compile() { | |
cd ${S} | |
cygautoreconf | |
cd ${B} | |
cygconf | |
cygmake all info html | |
} | |
src_install() { | |
cd ${B} | |
cyginstall | |
docinto html | |
dodoc docs/manual/html/* | |
doinfo ${S}/docs/manual/udis86.info | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment