Skip to content

Commit

Permalink
Initial commit of rewritten Cygport file
Browse files Browse the repository at this point in the history
Also adds various Git and GitHub paraphernalia.
  • Loading branch information
me-and committed Feb 10, 2021
1 parent ca6d0b3 commit 3ab2a5e
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 19 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: windows-latest
steps:
- name: Install Cygwin Git
uses: egor-tensin/setup-cygwin@v2
with:
packages: git
- name: Checkout
uses: actions/checkout@v2
- name: Load packages to install
id: cyg-package-list
run: |
$pkgs = Get-Content -Path .\build-requires.txt
echo "::set-output name=packages::$pkgs"
- name: Install Cygwin build requirements
uses: egor-tensin/setup-cygwin@v2
with:
packages: ${{ steps.cyg-package-list.outputs.packages }}
- name: Generate cygcheck output
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygcheck -srv >/var/log/cygcheck.out'
if: always()
- name: Store Chocolatey logs
uses: actions/upload-artifact@v2
with:
name: choco-logs
path: 'C:\ProgramData\chocolatey\logs\'
if: always()
- name: Store Cygwin logs
uses: actions/upload-artifact@v2
with:
name: cygwin-logs
path: 'C:\tools\cygwin\var\log\'
if: always()
- name: Cygport download
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport download'
- name: Cygport prep
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport prep'
- name: Cygport compile
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport compile'
- name: Cygport test
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport test'
- name: Cygport install
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport install'
- name: Cygport package
run: |
C:\tools\cygwin\bin\bash.exe -c 'cygport asciidoc.cygport package'
- name: Cygport upload
env:
MAINTAINER_KEY: ${{ secrets.MAINTAINER_KEY }}
run: |
C:\tools\cygwin\bin\bash.exe -c 'umask 0077 && mkdir -p ~/.ssh'
C:\tools\cygwin\bin\bash.exe -c 'umask 0077 && echo ""$MAINTAINER_KEY"" >~/.ssh/id_rsa'
C:\tools\cygwin\bin\bash.exe -c 'umask 0077 && echo ""cygwin.com,8.43.85.97 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGqrxexIuyqmCVe33p1HuhUFzsXte5QZKb+BJlsRrvXOpUOJEW2S0kszyAiymeV7AXaYmHDKVRJpGVR+0ua0Xww="" >~/.ssh/known_hosts'
C:\tools\cygwin\bin\bash.exe -c 'SSH_KEY=~/.ssh/id_rsa cygport asciidoc.cygport upload'
if: startsWith(github.ref, 'refs/tags/v')
- name: Tar up build results
run: |
C:\tools\cygwin\bin\bash.exe -c 'tar -caf asciidoc.txz asciidoc-*-*.*/'
if: always()
- name: Store build results
uses: actions/upload-artifact@v2
with:
name: build-results
path: |
asciidoc.txz
if-no-files-found: error
if: always()
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.tar.gz
/asciidoc-*/
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Yaakov Selkowitz <[email protected]> <yselkowitz@e127d73d-b18e-4ae1-a744-a22e6a3ccd30>
Yaakov Selkowitz <[email protected]> <[email protected]>
39 changes: 20 additions & 19 deletions asciidoc.cygport
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
inherit python
inherit python3

NAME="asciidoc"
VERSION=8.6.9
RELEASE=1
CATEGORY="Text Doc"
SUMMARY="Text-based document generation tool"
DESCRIPTION="AsciiDoc is a text document format for writing short documents,
articles, books and UNIX man pages. AsciiDoc files can be translated to HTML
and DocBook markups using the asciidoc(1) command."
REQUIRES="dblatex docbook-xsl libxslt w3m xmlto"
HOMEPAGE="http://www.methods.co.nz/asciidoc/"
SRC_URI="mirror://sourceforge/asciidoc/${NAME}-${VERSION}.tar.gz"
NAME='asciidoc'
VERSION='9.0.5'
RELEASE='1'
CATEGORY='Text Doc'
SUMMARY='Text-based document generation'
DESCRIPTION='AsciiDoc is a text document format for writing notes,
documentation, articles, books, ebooks, slideshows, web pages, man pages and
blogs. AsciiDoc files can be translated to many formats including HTML, PDF,
EPUB, man page.'
HOMEPAGE='https://asciidoc.org/'
SRC_URI="https://github.com/asciidoc/asciidoc-py3/archive/${VERSION}.tar.gz
build-requires.txt"
SRC_DIR="asciidoc-py3-${PV}"

ARCH=noarch
ARCH='noarch'
BUILD_REQUIRES="$(tr '\n' ' ' <build-requires.txt)"
REQUIRES='dblatex docbook-xsl libxslt python3 w3m'

src_compile() {
cd "${S}"
cygautoreconf
lndirs
cd ${B}
cd "${B}"
cygconf
cygmake
}

src_install() {
cd ${B}
cyginstall -j1
}
9 changes: 9 additions & 0 deletions build-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cygport
dblatex
docbook-xml45
docbook-xsl
gettext-devel
libxml2
libxslt
python3-devel
w3m

0 comments on commit 3ab2a5e

Please sign in to comment.