void-packages/srcpkgs/codelite/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

38 lines
1.3 KiB
Bash

# Template file for 'codelite'
pkgname=codelite
version=13.0
revision=5
archs="i686* x86_64* ppc64le*"
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
$(vopt_if lldb -DENABLE_LLDB=1)"
hostmakedepends="pkg-config clang which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel
$(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel)
$(vopt_if mysql libmariadbclient-devel) $(vopt_if sftp libssh-devel)"
short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
nocross=yes
python_version=2 #unverified
build_options="hunspell lldb mysql sftp"
build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
case "$XBPS_TARGET_MACHINE" in
x86_64*|ppc64le*) build_options_default+=" lldb";;
esac
pre_configure() {
sed -i -e 's,wx-config,&-gtk3,g' \
CMakeLists.txt
}