-DIST bcpp-20050725.tgz 132649 SHA256 1a4b5e8e741d6be400eb68b7c4a3eebc6dabe29948a72a7a0bccb1db075eaa2a SHA512 0ada3aee998fa6748e7492bfe2e0d6e5417640eaa19aa3342637ee1d162c907d2af4fd2d1ab24661f36798d2d51fa017d9c113b8499b32bf4d521e130aa75323 WHIRLPOOL fff51c65b60351c9a7c55d060754e3e09383b905820ab79aa2f371a894a82d8a3fa5a00b00a066380909c49487e262f99a832022b5f214d564e43b8939fcbdcb
-DIST bcpp-20090630.tgz 138757 SHA256 27b46ab3cef53a658605f350e3982862e17b523e703f23617530a57180200a34 SHA512 660d11c0d8a8d3ccc2a4c14ccb60164a43647fface79ffd86b8d99519e227e32a882fc213a5fef64fd3aee1c409c4bb0a871dfd6d6a09a8ad35e253baef6496b WHIRLPOOL 1fa68efd9874933de2097b87aab0dd586cbc29cf7fc3d4ba6d80984ecb289f01d8093e82fbca3f8077300887a8d1b1b970ed5bcabb0a766489bdcb23704f7ac2
DIST bcpp-20150811.tgz 145969 SHA256 6a18d68a09c4a0e8bf62d23d13ed7c8a62c98664a655f9d648bc466240ce97c3 SHA512 a11462574bd87cf66dc50ce23f188d335480aae5448b527694791d4b7ae5cde27c0e0c0850dc8899b2b66198c37a434985c833f95f7f2d2d88a3b7dfe4ff34a9 WHIRLPOOL 959677314ce1bbd361b3060f7f8f028ad89cce8d7167ecc169f6d49a854ecfadc50177be2dd2ffdac838252f67af72d2a4c341b2666208bc8cef1aadcee867db
+++ /dev/null
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-inherit eutils
-
-DESCRIPTION="Indents C/C++ source code"
-HOMEPAGE="http://invisible-island.net/bcpp/"
-SRC_URI="ftp://invisible-island.net/bcpp/${P}.tgz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE=""
-DEPEND=""
-RDEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-etc-cfg-files.patch"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc CHANGES MANIFEST README VERSION txtdocs/hirachy.txt \
- txtdocs/manual.txt
-
- # install our configuration files
- insinto /etc/bcpp
- doins bcpp.cfg indent.cfg
-}
-
-pkg_postinst() {
- elog "Check the documentation for more information on how to"
- elog "Run bcpp. Please note that in order to get help for"
- elog "bcpp, please run bcpp -h and not the command by itself."
- elog ""
- elog "Configuration files are at /etc/bcpp."
- elog "To use them, use the -c option followed by the filename."
-}
+++ /dev/null
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-
-inherit eutils
-
-DESCRIPTION="Indents C/C++ source code"
-HOMEPAGE="http://invisible-island.net/bcpp/"
-SRC_URI="ftp://invisible-island.net/bcpp/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-20050725-etc-cfg-files.patch"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
- dodoc CHANGES MANIFEST README VERSION txtdocs/hirachy.txt \
- txtdocs/manual.txt || die "dodoc failed"
-
- # Install our configuration files.
- insinto /etc/bcpp
- doins bcpp.cfg indent.cfg || die "doins failed"
-}
-
-pkg_postinst() {
- elog "Check the documentation for more information on how to"
- elog "Run bcpp. Please note that in order to get help for"
- elog "bcpp, please run bcpp -h and not the command by itself."
- elog ""
- elog "Configuration files are at /etc/bcpp."
- elog "To use them, use the -c option followed by the filename."
-}
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils
-
-DESCRIPTION="Indents C/C++ source code"
-HOMEPAGE="http://invisible-island.net/bcpp/"
-SRC_URI="ftp://invisible-island.net/bcpp/${P}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE=""
-
-DEPEND=""
-RDEPEND=""
-
-src_compile() {
- emake CPPFLAGS='-DBCPP_CONFIG_DIR=\"/etc/bcpp/\"'
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
- dodoc CHANGES MANIFEST README VERSION txtdocs/hirachy.txt \
- txtdocs/manual.txt || die "dodoc failed"
-
- # Install our configuration files.
- insinto /etc/bcpp
- doins bcpp.cfg indent.cfg || die "doins failed"
-}
-
-pkg_postinst() {
- elog "Check the documentation for more information on how to"
- elog "Run bcpp. Please note that in order to get help for"
- elog "bcpp, please run bcpp -h and not the command by itself."
- elog ""
- elog "Configuration files are at /etc/bcpp."
- elog "To use them, use the -c option followed by the filename."
-}
+++ /dev/null
-*** bcpp-20050725/code/bcpp.cpp.orig 2008-07-12 10:07:55.000000000 -0700
---- bcpp-20050725/code/bcpp.cpp 2008-07-12 10:07:57.000000000 -0700
-***************
-*** 3100,3110 ****
---- 3100,3116 ----
- const char* pathSepChar;
- char backUp;
- int count = 0;
-+ char buf[40];
-
- // test to see if file is in current directory first !
- if ((pCfgFile = fopen(pCfgName, "r")) != NULL)
- return;
-
-+ // try /etc/bcpp
-+ snprintf(buf, 40, "/etc/bcpp/%s", pCfgName);
-+ if ((pCfgFile = fopen(buf, "r")) != NULL)
-+ return;
-+
- // environment variable not found, lord knows what it is !
- if (pSPath == NULL)
- return;