1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.42 2007/02/17 01:07:48 zzam Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.43 2007/03/13 09:48:02 zzam Exp $ |
4 | # |
4 | # |
5 | # Author: |
5 | # Author: |
6 | # Matthias Schwarzott <zzam@gentoo.org> |
6 | # Matthias Schwarzott <zzam@gentoo.org> |
7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
7 | # Joerg Bornkessel <hd_brummy@gentoo.org> |
8 | |
8 | |
… | |
… | |
354 | |
354 | |
355 | insinto ${VDR_CHECKSUM_DIR} |
355 | insinto ${VDR_CHECKSUM_DIR} |
356 | if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then |
356 | if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then |
357 | newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} |
357 | newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} |
358 | else |
358 | else |
359 | if which md5sum >/dev/null 2>&1; then |
359 | if type -p md5sum >/dev/null 2>&1; then |
360 | cd ${S} |
360 | cd ${S} |
361 | ( |
361 | ( |
362 | cd ${VDR_INCLUDE_DIR} |
362 | cd ${VDR_INCLUDE_DIR} |
363 | md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 |
363 | md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 |
364 | ) > header-md5-${PN} |
364 | ) > header-md5-${PN} |