diff options
Diffstat (limited to 'app-text/scdoc')
-rw-r--r-- | app-text/scdoc/Manifest | 3 | ||||
-rw-r--r-- | app-text/scdoc/metadata.xml | 15 | ||||
-rw-r--r-- | app-text/scdoc/scdoc-1.2.3.ebuild | 38 |
3 files changed, 56 insertions, 0 deletions
diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest new file mode 100644 index 000000000000..427dc6a40b9c --- /dev/null +++ b/app-text/scdoc/Manifest @@ -0,0 +1,3 @@ +DIST scdoc-1.2.3.tar.xz 6920 BLAKE2B 7cafe512016dc7dcfa56216cac3f3fd99ef05dfefb67ce8dba9726c8d60b49829f444f66c62c4ee9a0d2464749510ba60ac0b72996c656e3d66aef80e5ef0546 SHA512 1d5170d2a73ebccdb83ffffbec5ec431aab54b02eea5b062d0210c98636d059dc1fa57bfc1573a0e510cc8849759f6bb6462e3f5a78f22273a10bf47f2e0a2c6 +EBUILD scdoc-1.2.3.ebuild 991 BLAKE2B a8c1a483f72ab72fe6b0b63d6baf54471ad39a4450bbf6e68f076b565f8d3f4d136c58cb4b4516cb101b9cc400d852a54faf850bf65b303738cd3b49414883dd SHA512 bbd1f6948ba80bdda6c12c60c7563d5e8266c6f51db33de40902719917951c686924f4f971e8781453cde571fa6ccc41749495dece88b5669c015281175718ee +MISC metadata.xml 444 BLAKE2B fe48dd13d534bacc09205bd073b4052e2f5afca50eedea53236f7d2d2f31f4f876fe0b4dcb57eb8a87b4090fffb5f924ed57b9a636453be7c2bb586cc4d1a142 SHA512 3a172b03f1768baf0bb940bd842f7e6c05762e79bb1d8632bdbf86276e79cda7f1b334750a3650cc86106154a8b2e2e426c7ab99d41cc5bf5119ac1e81e7b5fc diff --git a/app-text/scdoc/metadata.xml b/app-text/scdoc/metadata.xml new file mode 100644 index 000000000000..442a873c810e --- /dev/null +++ b/app-text/scdoc/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hilobakho@gmail.com</email> + <name>Mykyta Holubakha</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">swaywm/sway</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/scdoc/scdoc-1.2.3.ebuild b/app-text/scdoc/scdoc-1.2.3.ebuild new file mode 100644 index 000000000000..fb88bae39fea --- /dev/null +++ b/app-text/scdoc/scdoc-1.2.3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Standalone tool for generating man pages with a simple syntax" +HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc" +SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/snapshot/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_prepare() { + default + + sed -i 's/-Werror//' Makefile || die 'Failed to remove -Werror' + sed -i 's/CFLAGS=/CFLAGS+=/' Makefile || die 'Failed to patch makefile' +} + +src_compile() { + MY_HS="./scdoc" + if tc-is-cross-compiler; then + tc-export_build_env + MY_HS="./hostscdoc" + MAKEOPTS+=" HOST_SCDOC=./hostscdoc" + emake scdoc OUTDIR="${S}/.build.host" CC=$(tc-getBUILD_CC) \ + CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" + mv scdoc hostscdoc || die 'Failed to rename host scdoc' + fi + emake LDFLAGS="${LDFLAGS}" HOST_SCDOC="${MY_HS}" +} + +src_install() { + emake DESTDIR="${D}" HOST_SCDOC="${MY_HS}" install +} |