Skip to content

Commit

Permalink
emulators/*unicorn: update to 2.0.1p1
Browse files Browse the repository at this point in the history
  • Loading branch information
ant1 committed Apr 18, 2024
1 parent 5436d77 commit a6a428b
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 104 deletions.
6 changes: 4 additions & 2 deletions emulators/py-unicorn/Makefile
@@ -1,5 +1,5 @@
PORTNAME= unicorn
DISTVERSION= 1.0.2
PORTVERSION= 2.0.1p1
CATEGORIES= emulators python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand All @@ -9,10 +9,12 @@ WWW= https://www.unicorn-engine.org/

LICENSE= BSD3CLAUSE

LIB_DEPENDS= libunicorn.so:emulators/unicorn
BUILD_DEPENDS= ${LOCALBASE}/lib/libunicorn.so:emulators/unicorn
RUN_DEPENDS= ${LOCALBASE}/lib/libunicorn.so:emulators/unicorn

USE_GITHUB= yes
GH_ACCOUNT= unicorn-engine
GH_TAGNAME= 2.0.1.post1

USES= python
USE_PYTHON= distutils autoplist
Expand Down
6 changes: 3 additions & 3 deletions emulators/py-unicorn/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1603347498
SHA256 (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 6400e16f9211486fa5353b1870e6a82f8aa342e429718d1cbca08d609aaadc52
SIZE (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 3735111
TIMESTAMP = 1712441135
SHA256 (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 6b276c857c69ee5ec3e292c3401c8c972bae292e0e4cb306bb9e5466c0f14737
SIZE (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 4071380
6 changes: 3 additions & 3 deletions emulators/py-unicorn/files/patch-setup.py
@@ -1,12 +1,12 @@
# Do not bundle libunicorn.so

--- setup.py.orig 2020-09-21 18:11:43 UTC
--- setup.py.orig 2022-11-16 14:16:49 UTC
+++ setup.py
@@ -281,11 +281,4 @@ setup(
@@ -246,11 +246,4 @@ setup(
'Programming Language :: Python :: 3',
],
requires=['ctypes'],
- cmdclass={'build': custom_build, 'develop': custom_develop, 'sdist': custom_sdist, 'bdist_egg': custom_bdist_egg},
- cmdclass=cmdclass,
- zip_safe=False,
- include_package_data=True,
- is_pure=False,
Expand Down
25 changes: 4 additions & 21 deletions emulators/unicorn/Makefile
@@ -1,5 +1,5 @@
PORTNAME= unicorn
DISTVERSION= 1.0.2
PORTVERSION= 2.0.1p1
CATEGORIES= emulators

MAINTAINER= antoine@FreeBSD.org
Expand All @@ -9,29 +9,12 @@ WWW= https://www.unicorn-engine.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

BROKEN_armv6= fails to compile: 'tcg-target.h' file not found
BROKEN_armv7= fails to compile: 'tcg-target.h' file not found
BROKEN_mips= fails to compile: 'ICACHE' undeclared (first use in this function)
BROKEN_mips64= fails to compile: 'ICACHE' undeclared (first use in this function)
BROKEN_riscv64= fails to compile: 'tcg-target.h' file not found

TEST_DEPENDS= cmocka>0:sysutils/cmocka

USE_GITHUB= yes
GH_ACCOUNT= unicorn-engine
GH_TAGNAME= 2.0.1.post1

USES= compiler:c11 gmake python:build
USES= cmake:testing pkgconfig
USE_LDCONFIG= yes
BINARY_ALIAS= python=${PYTHON_CMD}
MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
SMP_MFLAGS=-j${MAKE_JOBS_NUMBER} \
V=1
TEST_TARGET= test
TEST_WRKSRC= ${WRKSRC}/tests/unit
_MAKE_JOBS= # MAKE_JOBS_NUMBER is passed via MAKE_ENV
# Optimization breaks runtime,
# see https://github.com/unicorn-engine/unicorn/issues/356
# and https://github.com/unicorn-engine/unicorn/issues/689
CFLAGS:= ${CFLAGS:C/-O[1-9]/-O0/g}
CMAKE_TESTING_ON= UNICORN_BUILD_TESTS

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions emulators/unicorn/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1603347498
SHA256 (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 6400e16f9211486fa5353b1870e6a82f8aa342e429718d1cbca08d609aaadc52
SIZE (unicorn-engine-unicorn-1.0.2_GH0.tar.gz) = 3735111
TIMESTAMP = 1712441135
SHA256 (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 6b276c857c69ee5ec3e292c3401c8c972bae292e0e4cb306bb9e5466c0f14737
SIZE (unicorn-engine-unicorn-2.0.1p1-2.0.1.post1_GH0.tar.gz) = 4071380
23 changes: 0 additions & 23 deletions emulators/unicorn/files/patch-Makefile

This file was deleted.

18 changes: 0 additions & 18 deletions emulators/unicorn/files/patch-qemu_configure

This file was deleted.

18 changes: 0 additions & 18 deletions emulators/unicorn/files/patch-qemu_include_qemu-common.h

This file was deleted.

12 changes: 0 additions & 12 deletions emulators/unicorn/files/patch-tests_unit_Makefile

This file was deleted.

6 changes: 5 additions & 1 deletion emulators/unicorn/pkg-plist
Expand Up @@ -3,10 +3,14 @@ include/unicorn/arm64.h
include/unicorn/m68k.h
include/unicorn/mips.h
include/unicorn/platform.h
include/unicorn/ppc.h
include/unicorn/riscv.h
include/unicorn/s390x.h
include/unicorn/sparc.h
include/unicorn/tricore.h
include/unicorn/unicorn.h
include/unicorn/x86.h
lib/libunicorn.a
lib/libunicorn.so
lib/libunicorn.so.1
lib/libunicorn.so.2
libdata/pkgconfig/unicorn.pc

0 comments on commit a6a428b

Please sign in to comment.