Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/textadept: new aport

From: Bradley Saulteaux <bradsoto_at_gmail.com>
Date: Tue, 5 Feb 2019 10:19:47 -0700

https://foicica.com/textadept/
A fast, minimalist, and remarkably extensible cross-platform text editor
---
 testing/textadept/10-use-curl.patch | 56 +++++++++++++++++++++++++++++
 testing/textadept/APKBUILD          | 45 +++++++++++++++++++++++
 2 files changed, 101 insertions(+)
 create mode 100644 testing/textadept/10-use-curl.patch
 create mode 100644 testing/textadept/APKBUILD
diff --git a/testing/textadept/10-use-curl.patch b/testing/textadept/10-use-curl.patch
new file mode 100644
index 0000000000..2d2c897bd8
--- /dev/null
+++ b/testing/textadept/10-use-curl.patch
_at_@ -0,0 +1,56 @@
+--- src/Makefile
++++ src.patched/Makefile
+_at_@ -358,9 +358,9 @@
+ 
+ ifndef NIGHTLY
+   #gtdialog_url = http://foicica.com/gtdialog/download/$_at_
+-  gtdialog_url = http://foicica.com/hg/gtdialog/archive/$_at_
++  gtdialog_url = https://foicica.com/hg/gtdialog/archive/$_at_
+ else
+-  gtdialog_url = http://foicica.com/hg/gtdialog/archive/tip.zip
++  gtdialog_url = https://foicica.com/hg/gtdialog/archive/tip.zip
+ endif
+ 
+ scintilla_zip = 542782a4df7d.zip
+_at_@ -377,7 +377,7 @@
+ bombay_zip = bombay.zip
+ cloc = cloc-1.60.pl
+ 
+-$(scintilla_zip): ; wget http://foicica.com/hg/scintilla/archive/$_at_ -O $@
++$(scintilla_zip): ; curl -O https://foicica.com/hg/scintilla/archive/$_at_
+ scintilla: scintilla.patch | $(scintilla_zip)
+ 	if [ -d $_at_/.hg ]; then \
+ 		hg --cwd $_at_ update -C LongTerm3; \
+_at_@ -400,7 +400,7 @@
+ lua/src/lib/lfs: | $(lfs_zip)
+ 	if [ -d $_at_ ]; then rm -r $@; fi
+ 	mkdir -p $_at_ && unzip -d $@ $| && mv $@/*/src/*.c $@/*/src/*.h $(dir $@)
+-$(gtdialog_zip): ; wget $(gtdialog_url) -O $_at_
++$(gtdialog_zip): ; curl -O $(gtdialog_url)
+ gtdialog: | $(gtdialog_zip) ; mkdir $_at_ && unzip -d $@ $| && mv $@/*/* $@
+ $(cdk_tgz): ; wget http://invisible-mirror.net/archives/cdk/$_at_
+ cdk: cdk.patch | $(cdk_tgz)
+_at_@ -413,9 +413,9 @@
+ 	if [ -d $_at_ ]; then rm -r $@; fi
+ 	mkdir $_at_ && tar xzf $| -C $@ && mv $@/*/* $@ && chmod +w $@/termkey.h
+ 	patch -d $_at_ -N -p1 < $<
+-$(win32gtk_zip): ; wget http://foicica.com/textadept/download/$_at_
++$(win32gtk_zip): ; curl -O https://foicica.com/textadept/download/$_at_
+ win32gtk: | $(win32gtk_zip) ; unzip $|
+-$(win32curses_zip): ; wget http://foicica.com/textadept/download/$_at_
++$(win32curses_zip): ; curl -O https://foicica.com/textadept/download/$_at_
+ $(pdcurses_zip): ; wget http://prdownloads.sourceforge.net/pdcurses/$_at_
+ win32curses: | $(win32curses_zip) $(pdcurses_zip)
+ 	unzip $(win32curses_zip)
+_at_@ -424,9 +424,9 @@
+ 	cd $_at_/src/win32 && $(MAKE) -f gccwin32.mak CC="$(CROSS)$(CC) $(CFLAGS)" \
+ 		LIBEXE=$(CROSS)ar LINK="$(CROSS)$(CC) $(CFLAGS)" WIDE=Y UTF8=Y
+ 	cp $_at_/src/win32/pdcurses.a $@/lib/
+-$(gtkosx_tgz): ; wget http://foicica.com/textadept/download/$_at_
++$(gtkosx_tgz): ; curl -O https://foicica.com/textadept/download/$_at_
+ gtkosx: | $(gtkosx_tgz) ; mkdir $_at_ && tar xzf $| -C $@ && mv $@/*/* $@
+-$(bombay_zip): ; wget http://foicica.com/hg/bombay/archive/tip.zip -O $_at_
++$(bombay_zip): ; curl -o $_at_ https://foicica.com/hg/bombay/archive/tip.zip
+ ../doc/bombay: | $(bombay_zip)
+ 	mkdir $(notdir $_at_) && unzip -d $(notdir $@) $| && \
+ 		mv $(notdir $_at_)/*/* $(dir $@)
diff --git a/testing/textadept/APKBUILD b/testing/textadept/APKBUILD
new file mode 100644
index 0000000000..2e1ddc2d13
--- /dev/null
+++ b/testing/textadept/APKBUILD
_at_@ -0,0 +1,45 @@
+# Maintainer: Bradley Saulteaux <bradsoto_at_gmail.com>
+pkgname=textadept
+pkgver=10.2
+_pkgver=9418438a2ac4
+pkgrel=0
+pkgdesc="A fast, minimalist, and remarkably extensible cross-platform text editor"
+url="https://foicica.com/textadept/"
+arch="all"
+license="MIT"
+depends="gtk+2.0"
+makedepends="curl ncurses-dev gtk+2.0-dev"
+install=""
+options="!check"
+subpackages="${pkgname}-curses"
+source="${pkgname}-${pkgver}.zip::https://foicica.com/hg/${pkgname}/archive/${_pkgver}.zip
+	10-use-curl.patch"
+builddir="$srcdir/${pkgname}-${_pkgver}/src"
+
+prepare() {
+	default_prepare
+	cd "$builddir"
+	make deps
+}
+
+build() {
+	cd "$builddir"
+	make
+	make ${pkgname}-curses
+}
+	
+curses() {
+	depends="ncurses-libs"
+	mkdir -p "$subpkgdir"/usr/bin
+	mkdir -p "$subpkgdir"/usr/share/applications/
+	mv "$srcdir/${pkgname}-${_pkgver}/${pkgname}-curses" "$subpkgdir"/usr/bin/
+	mv "$builddir/${subpkgname}.desktop" "$subpkgdir"/usr/share/applications/
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" PREFIX="/usr" install
+}
+
+sha512sums="739c5038afcde6e42c60c18bd000518236071adfc34989f0c06283c71a68b5a62262e364b5e533aeab636ee25e2af1f25ab6df7a0e16a365f15a37d46cc982c3  textadept-10.2.zip
+3ee92c33fbeef562d9c4e2aba8b9eff585fa91839b9939e95d413811fd05393b049add4e110ab94f63e64382c5323217f87081fc1860700d011b24977ad058a0  10-use-curl.patch"
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Feb 05 2019 - 10:19:47 UTC