X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lists.alpinelinux.org (Postfix) with ESMTP id 3FEC7F831C3 for ; Tue, 5 Feb 2019 17:16:17 +0000 (UTC) Received: by mail-qt1-f177.google.com with SMTP id j36so2381256qta.7 for ; Tue, 05 Feb 2019 09:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aYW0Qj8T0ptwQWfq9B0WCkQEIXzTHT9HHJ7ECOepqfQ=; b=KvQYZ6bPS91PjHw5CuUCZ0HpQYFOLPTtWjwTo63U0lct+Yc7r89hS4hOo+7sp8pZRI +Ev3mxl6+0BcBxwExQh2r4ITtppLILxmSeJ2rxkynpjE1Kd1iZdVTDlm0QVLuqn1ZOGH PI7pIXbFyt+t8q+u4KuDsJ3KlF0rac6jGzFerbRcyXsCod8qB/pb3XgCsxekfqBTtBud 5BdrE02t8JMmOMckkGraF0GroltM8IxXmWVjXtIDEyPqOa6ASizn9zpmKZlHDSY9K/0g cYPNOLWdBM6Se6pjVqWq790+GmZXsbk8PC6a9eMyrmM8/5hm5bwk8XwqukOM/friehv4 X0PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aYW0Qj8T0ptwQWfq9B0WCkQEIXzTHT9HHJ7ECOepqfQ=; b=Z4QInA4Qm7XYBVpn47Ox3ioqV6c+XS9dSV8zrb37PBbH/t3wrS8f9opckAi706lSHT n2XPuoWsydd1jpwxtHArEgJ7GZ0bU4Ubo4WcNCue5MXmi+ZOEdJLZbfRmwiiPYmmcG5C 0nK0XUg8I6o4Sbkw1NEXhNX7vApAZWBFG2v0kuFPkQVQOZfuKdJZpqGYSWe43uRf35HU voer/GSNmD+Z8nfL36ZuqUWZ7dEmXUwQUAuOFcrLM0qLfgR45EMTvYpOMZ44lftrUlGp nrTMpDNW0NuI2x+s8EmV8Ufa7dNZb7GejnVQrjt5uXqO7x9BJCO2QhryaO9IwPISc5/d Tg1w== X-Gm-Message-State: AHQUAuax1EPbdmJy94l7VUuv7QmZ3/2E2cc+JVKyz2PZOblk+D16dZJ4 nxZGam8VOw+vm1P3I7gyQK1x523C X-Google-Smtp-Source: AHgI3Ib6fkzeXP/EdQYmW0QdiyeuM6ICLnjLQYocw81p5fHAsuAaKXsJSnxRRe3rUSpY/sjGNNkIgg== X-Received: by 2002:ac8:73c4:: with SMTP id v4mr4336952qtp.157.1549386976269; Tue, 05 Feb 2019 09:16:16 -0800 (PST) Received: from localhost.localdomain ([76.70.221.255]) by smtp.gmail.com with ESMTPSA id h52sm13530425qtb.8.2019.02.05.09.16.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 09:16:15 -0800 (PST) From: Bradley Saulteaux To: alpine-aports@lists.alpinelinux.org Cc: Bradley Saulteaux Subject: [alpine-aports] [PATCH] testing/textadept: new aport Date: Tue, 5 Feb 2019 10:19:47 -0700 Message-Id: <20190205171946.27933-1-bradsoto@gmail.com> X-Mailer: git-send-email 2.20.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 @@ -0,0 +1,56 @@ +--- src/Makefile ++++ src.patched/Makefile +@@ -358,9 +358,9 @@ + + ifndef NIGHTLY + #gtdialog_url = http://foicica.com/gtdialog/download/$@ +- gtdialog_url = http://foicica.com/hg/gtdialog/archive/$@ ++ gtdialog_url = https://foicica.com/hg/gtdialog/archive/$@ + 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 +@@ -377,7 +377,7 @@ + bombay_zip = bombay.zip + cloc = cloc-1.60.pl + +-$(scintilla_zip): ; wget http://foicica.com/hg/scintilla/archive/$@ -O $@ ++$(scintilla_zip): ; curl -O https://foicica.com/hg/scintilla/archive/$@ + scintilla: scintilla.patch | $(scintilla_zip) + if [ -d $@/.hg ]; then \ + hg --cwd $@ update -C LongTerm3; \ +@@ -400,7 +400,7 @@ + lua/src/lib/lfs: | $(lfs_zip) + if [ -d $@ ]; then rm -r $@; fi + mkdir -p $@ && unzip -d $@ $| && mv $@/*/src/*.c $@/*/src/*.h $(dir $@) +-$(gtdialog_zip): ; wget $(gtdialog_url) -O $@ ++$(gtdialog_zip): ; curl -O $(gtdialog_url) + gtdialog: | $(gtdialog_zip) ; mkdir $@ && unzip -d $@ $| && mv $@/*/* $@ + $(cdk_tgz): ; wget http://invisible-mirror.net/archives/cdk/$@ + cdk: cdk.patch | $(cdk_tgz) +@@ -413,9 +413,9 @@ + if [ -d $@ ]; then rm -r $@; fi + mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ && chmod +w $@/termkey.h + patch -d $@ -N -p1 < $< +-$(win32gtk_zip): ; wget http://foicica.com/textadept/download/$@ ++$(win32gtk_zip): ; curl -O https://foicica.com/textadept/download/$@ + win32gtk: | $(win32gtk_zip) ; unzip $| +-$(win32curses_zip): ; wget http://foicica.com/textadept/download/$@ ++$(win32curses_zip): ; curl -O https://foicica.com/textadept/download/$@ + $(pdcurses_zip): ; wget http://prdownloads.sourceforge.net/pdcurses/$@ + win32curses: | $(win32curses_zip) $(pdcurses_zip) + unzip $(win32curses_zip) +@@ -424,9 +424,9 @@ + cd $@/src/win32 && $(MAKE) -f gccwin32.mak CC="$(CROSS)$(CC) $(CFLAGS)" \ + LIBEXE=$(CROSS)ar LINK="$(CROSS)$(CC) $(CFLAGS)" WIDE=Y UTF8=Y + cp $@/src/win32/pdcurses.a $@/lib/ +-$(gtkosx_tgz): ; wget http://foicica.com/textadept/download/$@ ++$(gtkosx_tgz): ; curl -O https://foicica.com/textadept/download/$@ + gtkosx: | $(gtkosx_tgz) ; mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ +-$(bombay_zip): ; wget http://foicica.com/hg/bombay/archive/tip.zip -O $@ ++$(bombay_zip): ; curl -o $@ https://foicica.com/hg/bombay/archive/tip.zip + ../doc/bombay: | $(bombay_zip) + mkdir $(notdir $@) && unzip -d $(notdir $@) $| && \ + mv $(notdir $@)/*/* $(dir $@) diff --git a/testing/textadept/APKBUILD b/testing/textadept/APKBUILD new file mode 100644 index 0000000000..2e1ddc2d13 --- /dev/null +++ b/testing/textadept/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Bradley Saulteaux +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@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---