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-text/sloccount |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/sloccount')
-rw-r--r-- | app-text/sloccount/Manifest | 8 | ||||
-rw-r--r-- | app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch | 12 | ||||
-rw-r--r-- | app-text/sloccount/files/sloccount-2.26-gentoo.patch | 20 | ||||
-rw-r--r-- | app-text/sloccount/files/sloccount-2.26-libexec.patch | 81 | ||||
-rw-r--r-- | app-text/sloccount/metadata.xml | 7 | ||||
-rw-r--r-- | app-text/sloccount/sloccount-2.26-r3.ebuild | 50 |
6 files changed, 178 insertions, 0 deletions
diff --git a/app-text/sloccount/Manifest b/app-text/sloccount/Manifest new file mode 100644 index 000000000000..cc99b626e3de --- /dev/null +++ b/app-text/sloccount/Manifest @@ -0,0 +1,8 @@ +AUX sloccount-2.26-coreutils-tail-n-fix.patch 468 SHA256 79ef08b0ba5f892878fe410b6e360566202acea9d1abcf07481e9218393f7c6a SHA512 200ccf47b4ca21a17cbe06ccf7b9a8022c794d1b5c0e0f59477b74a37704a6d5a106d4a7791ab84f6387032c938c132ffc1971e4db6532b21d5a0f2fef6df03e WHIRLPOOL e756041390e1ef3fcd6b7528832ea6d2adf58a1761346a1ce6942efe0dc9b469273f3d97317bd16d61761b5641a73a808006ec1cd20d1e7892c66aa5937c86d0 +AUX sloccount-2.26-gentoo.patch 852 SHA256 6592efb16312a2c2ae99ca50d9bb5f3a186967eca32b55573d612a7ed609e63c SHA512 226a28d6ce4bc42f3074dc4390379e0d4539d9e2d9dabe3ec7b60fd41a9b3d9d882d4c4b0dce6803eb137230b67cc622d2b3ab6c4ead0cb90a410efe4b5b18af WHIRLPOOL b3b0965878662239f12f9688def70db58f0b07f951893ce33ade04656fba2e3bdef133f1ff2b852fdd95fea4033766456d5eb9d9fec99de65fb82f4af4197502 +AUX sloccount-2.26-libexec.patch 2293 SHA256 c098bc1ba364a43cfb39805f6d7c46c7f3d72f4969c0bfb2dd4d62ef750df1f7 SHA512 87101dc6c6632d38ff25b842b3342ee7caae0a926ce7c62f07360691a1494f8fefb8a039743d6cc49e3ca53a2eb179a06a97763ff5cf6224056a0916317afa35 WHIRLPOOL a09040e640099af129a5e912ccf1b8f6f09b408f6fc8b9c415254ac1d7b11783875187727b835688e930b8d4a6fdac59a1dd9112fed96a26ac85b65b029d9611 +DIST sloccount-2.26.tar.gz 190948 SHA256 fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b SHA512 ed6ab315a56dbdc86c654b94e790c9ea9e2dcad0db26b63c0973c33eb7fa634b4ade0a1f3c6ccfd5172ea95f648c1dd3b0ae2575b0aa44b3fec708c24a6aca54 WHIRLPOOL dd809909e10601ec733a7e5426183553c00c2cd25164db2d9085c975f689209067c206094caa84ef5085fc27a7188509fced271928e2d28ccb5a6b0749f7cd77 +EBUILD sloccount-2.26-r3.ebuild 1267 SHA256 d5fed62cdec507414d2f3e7be0f04cb71cafc217aaec04fe54f973420900cf35 SHA512 c6bedf3aaaafa0fcd5b3145fbf46034a60081ab9deb8f6168258574581a085afc22cafcb36a70ab24680286cbfc670a08099f0d677a1da0961707b7ff6a11782 WHIRLPOOL 9868dfe041e26c1435c0ad0c4dd342183e6637a4a24145a8015c33addb19c7955b19790cce34da48429a0e4a2b031c1556b95b56f1bd057143c9f7ed2c968d97 +MISC ChangeLog 2450 SHA256 d38ffde1e04673a63035b72f9b3a5ff3b37a2faeae233fd0a0e5a15d323b7de7 SHA512 aafe8ce21ad79d3ac5e2df3d80ccfeeadea18cc391e098d9b4c32e8fc26edc26c35c0e6ad6f1470d52a73135e1ed4f2dc68eb93019bc54eb645339fae0527dac WHIRLPOOL 74db4fc292f742fa9d73cd70b659d92c5e942a63708c73083697e270a4627f2745b19ad85b818b744c70054b7f3ace5a51e9eb961da654fd6a97b2f0a12b2df4 +MISC ChangeLog-2015 4704 SHA256 46be8c7f6bff4a440cf23e9a97c1d9f84e6efb3fe534bc1497653f54313fab06 SHA512 7c6deb273353ddd84db44c17c6ae91c05877783638b7ed5e520aa6a00ecd851feb37965eb873bba08a61694b0dfce8f2a7e052d0c51b1df0c0f46c7c163e8da6 WHIRLPOOL 88366e9ef7172e27523f879fd776325cd8d44e0f90808b8ce862ceb8a5ac8d2f14d65dce0ec0d0374afa3689386b6fadbd9e6b561de6c07c39c6592274fd8490 +MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16 diff --git a/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch b/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch new file mode 100644 index 000000000000..caf30cf894de --- /dev/null +++ b/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch @@ -0,0 +1,12 @@ +diff -Nur sloccount-2.22/compute_sloc_lang sloccount-2.22-new/compute_sloc_lang +--- sloccount-2.22/compute_sloc_lang 2002-02-28 13:34:09.000000000 +0100 ++++ sloccount-2.22-new/compute_sloc_lang 2004-10-23 12:36:56.295312577 +0200 +@@ -30,7 +30,7 @@ + *) ${language}_count -f ${language}_list.dat > ${language}_outfile.dat + ;; + esac +- tail -1 < ${language}_outfile.dat ++ tail -n 1 < ${language}_outfile.dat + + else + rm -f ${language}_outfile.dat diff --git a/app-text/sloccount/files/sloccount-2.26-gentoo.patch b/app-text/sloccount/files/sloccount-2.26-gentoo.patch new file mode 100644 index 000000000000..c3a031190a36 --- /dev/null +++ b/app-text/sloccount/files/sloccount-2.26-gentoo.patch @@ -0,0 +1,20 @@ +--- break_filelist.old 2013-10-14 17:23:01.523330534 +0800 ++++ break_filelist 2004-08-01 12:17:28.000000000 +0800 +@@ -177,7 +177,7 @@ + "p" => "pascal", "pas" => "pascal", "pp" => "pascal", "dpr" => "pascal", + "py" => "python", + "s" => "asm", "S" => "asm", "asm" => "asm", ++ "sh" => "sh", "bash" => "sh", "ebuild" => "sh", +- "sh" => "sh", "bash" => "sh", + "csh" => "csh", "tcsh" => "csh", + "java" => "java", + "lisp" => "lisp", "el" => "lisp", "scm" => "lisp", "sc" => "lisp", +@@ -879,7 +879,7 @@ + $command = $2; + } + ++ if ( ($command =~ m/^(bash|ksh|zsh|pdksh|sh|runscript)[0-9\.]*(\.exe)?$/i) || +- if ( ($command =~ m/^(bash|ksh|zsh|pdksh|sh)[0-9\.]*(\.exe)?$/i) || + ($firstline =~ + m~^#!\s*\@_?(SCRIPT_)?(PATH_)?(BA|K)?SH(ELL)?(\d+)?\@?(\s|\Z)~)) { + # Note: wish(1) uses a funny trick; see wish(1) for more info. diff --git a/app-text/sloccount/files/sloccount-2.26-libexec.patch b/app-text/sloccount/files/sloccount-2.26-libexec.patch new file mode 100644 index 000000000000..cb8250f68cf6 --- /dev/null +++ b/app-text/sloccount/files/sloccount-2.26-libexec.patch @@ -0,0 +1,81 @@ +Files sloccount-2.26.orig/.makefile.swp and sloccount-2.26/.makefile.swp differ +Files sloccount-2.26.orig/.sloccount.swp and sloccount-2.26/.sloccount.swp differ +diff -ruN sloccount-2.26.orig/makefile sloccount-2.26/makefile +--- sloccount-2.26.orig/makefile 2005-02-20 21:26:00.000000000 +0100 ++++ sloccount-2.26/makefile 2005-02-20 21:32:58.000000000 +0100 +@@ -70,6 +70,7 @@ + ARCH=i386 + VERSIONEDNAME=$(NAME)-$(VERSION) + INSTALL_DIR=$(PREFIX)/bin ++LIBEXEC_DIR=$(PREFIX)/libexec/$(NAME) + MAN_DIR=$(PREFIX)/share/man + MAN_DIR_MAN1=$(MAN_DIR)/man1 + DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION) +@@ -115,11 +116,12 @@ + sed_count \ + sh_count \ + show_filecount \ +- sloccount \ + sql_count \ + tcl_count \ + $(COMPILED_EXECUTABLES) + ++MAIN_EXECUTABLE=sloccount ++ + MANPAGES=sloccount.1.gz + + MYDOCS=sloccount.html README TODO ChangeLog +@@ -162,12 +164,24 @@ + c_lines: C_LINES.C + $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX) + ++install_prefix: ++ $(INSTALL_A_DIR) $(PREFIX) + +-install_programs: all +- $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR) ++install_program: ++ $(INSTALL_A_DIR) $(INSTALL_DIR) ++ $(INSTALL) $(MAIN_EXECUTABLE) $(INSTALL_DIR) ++ ++uninstall_program: ++ cd $(INSTALL_DIR) && rm -f $(MAIN_EXECUTABLE) ++ ++install_libexec: all ++ $(INSTALL_A_DIR) $(LIBEXEC_DIR) ++ $(INSTALL) $(EXECUTABLES) $(LIBEXEC_DIR) ++ ++uninstall_libexec: ++ cd $(LIBEXEC_DIR) && rm -f $(EXECUTABLES) ++ rmdir $(LIBEXEC_DIR) + +-uninstall_programs: +- cd $(INSTALL_DIR) && rm -f $(EXECUTABLES) + + install_man: $(MANPAGES) + $(INSTALL_A_DIR) $(MAN_DIR_MAN1) +@@ -184,9 +198,9 @@ + rm -fr $(DOC_DIR) + + +-install: install_programs install_man install_docs ++install: install_prefix install_program install_libexec install_man install_docs + +-uninstall: uninstall_programs uninstall_docs uninstall_man ++uninstall: uninstall_program uninstall_libexec uninstall_docs uninstall_man + + + clean: +diff -ruN sloccount-2.26.orig/sloccount sloccount-2.26/sloccount +--- sloccount-2.26.orig/sloccount 2005-02-20 21:26:00.000000000 +0100 ++++ sloccount-2.26/sloccount 2005-02-20 21:33:25.000000000 +0100 +@@ -39,6 +39,9 @@ + + startingdir=`pwd` + ++libexec_dir=/usr/libexec/sloccount ++export PATH=$PATH:$libexec_dir ++ + + # "datadir" is some suitable safe place for the data; here's the default: + datadir=${HOME}/.slocdata diff --git a/app-text/sloccount/metadata.xml b/app-text/sloccount/metadata.xml new file mode 100644 index 000000000000..79d462e85571 --- /dev/null +++ b/app-text/sloccount/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-text/sloccount/sloccount-2.26-r3.ebuild b/app-text/sloccount/sloccount-2.26-r3.ebuild new file mode 100644 index 000000000000..0c1bc3de2f75 --- /dev/null +++ b/app-text/sloccount/sloccount-2.26-r3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Tools for counting Source Lines of Code (SLOC) for a large number of languages" +HOMEPAGE="http://www.dwheeler.com/sloccount/" +SRC_URI="http://www.dwheeler.com/sloccount/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="" +RDEPEND="dev-lang/perl + >=sys-apps/sed-4 + app-shells/bash" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-libexec.patch + epatch "${FILESDIR}"/${P}-coreutils-tail-n-fix.patch + # support for .ebuild and #!/sbin/openrc-run: + epatch "${FILESDIR}"/${P}-gentoo.patch + + sed -i \ + -e 's|^CC=gcc|CFLAGS+=|g' \ + -e 's|$(CC)|& $(CFLAGS) $(LDFLAGS)|g' \ + -e '/^DOC_DIR/ { s/-$(RPM_VERSION)//g }' \ + -e '/^MYDOCS/ { s/[^ =]\+\.html//g }' \ + makefile || die "sed makefile failed" + + #fixed hard-codes libexec_dir in sloccount + sed -i "s|libexec_dir=|&\"${EPREFIX}\"|" sloccount || die +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_test() { + PATH+=":${S}" + emake test +} + +src_install() { + emake PREFIX="${ED}/usr" DOC_DIR="${ED}/usr/share/doc/${PF}/" install + dohtml *html +} |