Merge pull request #4271 from lazka/remove-termbox

termbox: remove
This commit is contained in:
Christoph Reiter 2023-12-13 16:08:30 +01:00 committed by GitHub
commit 56e565edcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 88 deletions

1
termbox/.gitignore vendored
View File

@ -1 +0,0 @@
waf-*

View File

@ -1,29 +0,0 @@
--- a/wscript.orig 2016-09-08 01:58:21.517747400 +0900
+++ b/wscript 2016-09-08 01:58:24.603153700 +0900
@@ -21,6 +21,7 @@
conf.load('gnu_dirs')
conf.load('compiler_c')
conf.env.append_unique('CFLAGS', ['-std=gnu99', '-Wall', '-Wextra', '-D_XOPEN_SOURCE'])
+ conf.env.cshlib_PATTERN = 'msys-%s.dll'
if conf.options.debug:
conf.env.append_unique('CFLAGS', ['-g', '-Og'])
else:
--- a/src/wscript.orig 2016-09-08 01:59:52.025907200 +0900
+++ b/src/wscript 2016-09-08 01:59:56.521546000 +0900
@@ -3,6 +3,7 @@
bld.shlib(
source = sources,
target = 'termbox',
+ libdir = '${PREFIX}/lib',
name = 'termbox_shared',
vnum = bld.env.VERSION,
)
@@ -10,7 +11,7 @@
source = sources,
target = 'termbox',
name = 'termbox_static',
- install_path = '${LIBDIR}',
+ install_path = '${PREFIX}/lib',
)
bld.install_files('${PREFIX}/include', 'termbox.h')
bld.recurse("demo")

View File

@ -1,20 +0,0 @@
From d4fa2c2fd3db741da6690cc68a461dab54abfb11 Mon Sep 17 00:00:00 2001
From: nsf <no.smile.face@gmail.com>
Date: Mon, 26 Sep 2016 02:24:23 +0500
Subject: [PATCH] Add _XOPEN_SOURCE define for python module. Fixes #89.
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 0a8ba7e..db68b15 100644
--- a/setup.py
+++ b/setup.py
@@ -19,5 +19,5 @@
url = 'http://code.google.com/p/termbox/',
license = 'MIT',
cmdclass = {'build_ext': build_ext},
- ext_modules = [Extension('termbox', sourcefiles, extra_compile_args=["-Wno-error=declaration-after-statement"])],
+ ext_modules = [Extension('termbox', sourcefiles, extra_compile_args=["-D_XOPEN_SOURCE", "-Wno-error=declaration-after-statement"])],
)

View File

@ -1,38 +0,0 @@
# Maintainer: Yusuke Sasaki <yusuke dot sasaki dot nuem at gmail dot com>
pkgname=termbox
pkgver=1.1.0
pkgrel=2
pkgdesc="Library for writing text-based user interfaces"
_wafver=1.9.15
arch=('i686' 'x86_64')
license=('MIT')
url="https://github.com/nsf/termbox"
makedepends=('python3' 'gcc')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/nsf/termbox/archive/v${pkgver}.tar.gz
https://waf.io/waf-${_wafver}
0010-msysize.patch
0100-add_XOPEN_SOURCE-define-for-python-module.patch)
sha256sums=('2743ee4aeb0ff39fadbaf945b76c43e6f6bba544156f2576282b775a3067d748'
'85e76e38df9a4d45a6f73383f02f1438a5da39890e28c483101b2c16d2a63663'
'ad0550bd4e66daee3f6c3cfcc01c3f12e8b2e415f87deae910df8cfbe0f4ee35'
'aee94d19c50610cf1fae7f289deec13cd985d64472bcd8dce85ee648cdd2d6e9')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
cp -f ${srcdir}/waf-${_wafver} ./waf
patch -p1 -i ${srcdir}/0010-msysize.patch
patch -p1 -i ${srcdir}/0100-add_XOPEN_SOURCE-define-for-python-module.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
/usr/bin/python waf configure --prefix=/usr
/usr/bin/python waf build -v
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
/usr/bin/python waf install --destdir="${pkgdir}"
}