diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/kcc |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/kcc')
-rw-r--r-- | app-i18n/kcc/Manifest | 7 | ||||
-rw-r--r-- | app-i18n/kcc/files/kcc-exit.diff | 10 | ||||
-rw-r--r-- | app-i18n/kcc/files/kcc-gcc3-gentoo.diff | 47 | ||||
-rw-r--r-- | app-i18n/kcc/kcc-1.0.ebuild | 34 | ||||
-rw-r--r-- | app-i18n/kcc/metadata.xml | 8 |
5 files changed, 106 insertions, 0 deletions
diff --git a/app-i18n/kcc/Manifest b/app-i18n/kcc/Manifest new file mode 100644 index 000000000000..cef9cf3914cd --- /dev/null +++ b/app-i18n/kcc/Manifest @@ -0,0 +1,7 @@ +AUX kcc-exit.diff 161 SHA256 4a5d3aa6da58e16cad080da96521bf78e2e42e5327bafbdcb7a71c6994d15995 SHA512 8ee69339db13935d54562189e86941384dc5c01caa30e4efba11e783690b863a1210a5e841ab8a5ac907af9002ac6debd3516a6928f15777a8b31c2089907214 WHIRLPOOL 6bc5a55b801ec0152824e3913e8f6ac6e72543563ccf2a5f53de7ffc391e30462cb671e14e7bc49a494e17a0d66872c2c79ee4ca400207669f84a242a5876a11 +AUX kcc-gcc3-gentoo.diff 1026 SHA256 26ee19e57e598a24d7f781c39215bd18e3bfb14a826b96e63de834e0a2857336 SHA512 59c57ee4c34e27b8a0558896e5a94b21f976351e0cd372bc9bd85ac83757276eecdcabd81e4fb02b6f2513e06542d63bcf656140d5407a0e2804f04d5ab55303 WHIRLPOOL a40eebc2f02bfb8a0b2614768a1ea9fcb6c5b25601b1327e6a60d98800d2ada98bfe119f551bf3cc0615d8ae2506ad483a410a3a2e8b217f48122138ecb8f5f6 +DIST kcc.tar.gz 18869 SHA256 4f77ab0bcd7b377bca887973eb364ba5b2f9a0c057fb7e0f9b998f020f57d231 SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145 WHIRLPOOL b957057124acaacb61141d26b509ed8b73443b68d8a5f3fb4e498807dcc6f3aa88e120b1467adede86990f85a07776459e7bd0f1224ec8f79b2c1595074ef978 +EBUILD kcc-1.0.ebuild 719 SHA256 08c2a0027b68a707eed4f16e005be4f24a2b3e0fbc8984e9b2c5c496feff55a9 SHA512 be0ae39180e876b6b7a64f5e45e82d88ab8e5276f6662954b807c5082169982344b096c79f08fc820f25717438a6e0bbfba4f32f690fd2df27b62dde904e9450 WHIRLPOOL 732ca01750378998e801700df753240da57909ad1acfab55570f0d8581a7ff42acd32be6e131c8821760304699a4175796aef6273186ce0349ed2f3b169636b2 +MISC ChangeLog 2462 SHA256 ee885d21ad40e8ebeaaa475eb117a0e99649cfb8b87ffce2812da9056042f6ab SHA512 b450bc7479de84fea98fe3f8c456a1ba163a48ecc707f7fc68e8bb5871a7649c4d014f9a272b44508754280f680574a4c11b827518cd9e73192e093b2b83a3b8 WHIRLPOOL 8edf0840e8ae45a7edc2322a3fb1cfadd31b655b5d3992c111f444c9e5d371c7ecb8bd1a7736d134796e4c4fa93cc9deb0645edca2a838df07c9cdae59324962 +MISC ChangeLog-2015 1629 SHA256 eadce2faf71b408f7034a5255689f03a798c700b0c638922658ecb045fa95acf SHA512 5c04da7b511171d9fe58e25b2c3bfc58426abfcd968a6d879d8d17aa1b430e365747723fe0b6e815070c91c62888acad9626bfa8ae1c2acb1b4c26e7d1cab934 WHIRLPOOL 82f477970984b8c94d2669f0ea40efde827fdd44eb207228fa634d6816089daedc565dc7ed99838ecd3b6fe74320cc652673cd10d48c130f5b55aedc0ff7874f +MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c diff --git a/app-i18n/kcc/files/kcc-exit.diff b/app-i18n/kcc/files/kcc-exit.diff new file mode 100644 index 000000000000..478977a88256 --- /dev/null +++ b/app-i18n/kcc/files/kcc-exit.diff @@ -0,0 +1,10 @@ +--- a/kcc.c ++++ b/kcc.c +@@ -27,6 +27,7 @@ + #endif + + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> + #include <sys/types.h> + #include <sys/stat.h> diff --git a/app-i18n/kcc/files/kcc-gcc3-gentoo.diff b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff new file mode 100644 index 000000000000..88f08e20161d --- /dev/null +++ b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff @@ -0,0 +1,47 @@ +--- a/kcc.c ++++ b/kcc.c +@@ -134,7 +134,11 @@ + extern unsigned short hiragana[]; + unsigned short *kanatbl = katakana; + ++#ifdef __STDC__ ++void error(char *format, ...); ++#else + void error(); ++#endif + + /********************************************************************** + * * +@@ -364,14 +368,30 @@ + NAME + error - print formatted error message on stderr and die + ---------------------------------------------------------------------*/ ++#ifdef __STDC__ ++#include <stdarg.h> ++#else + #include <varargs.h> ++#endif + +-void error(va_alist) +- va_dcl ++void ++#ifdef __STDC__ ++error(char *format, ...) ++#else ++error(va_alist) va_dcl ++#endif + { + va_list args; + ++#ifdef __STDC__ ++ va_start(args, format); ++#else ++ char *format; ++ + va_start(args); ++ /* extract the fixed argument */ ++ format = va_arg(args, char *); ++#endif + fprintf(stderr, "%s: ", progname); + vfprintf(stderr, va_arg(args, char *), args); + putc('\n', stderr); diff --git a/app-i18n/kcc/kcc-1.0.ebuild b/app-i18n/kcc/kcc-1.0.ebuild new file mode 100644 index 000000000000..bcb220713949 --- /dev/null +++ b/app-i18n/kcc/kcc-1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A Kanji code converter" +HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/" +SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff" + epatch "${FILESDIR}/${PN}-exit.diff" + sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin kcc + dodoc README + cp -f kcc.jman kcc.1 || die + doman -i18n=ja kcc.1 +} diff --git a/app-i18n/kcc/metadata.xml b/app-i18n/kcc/metadata.xml new file mode 100644 index 000000000000..e1a49f498885 --- /dev/null +++ b/app-i18n/kcc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> +</pkgmetadata> |